Skip to content

Commit

Permalink
Merge pull request GATEOverflow#67 from arjunsuresh/mlperf-inference
Browse files Browse the repository at this point in the history
Fix the checksum check on macos
  • Loading branch information
arjunsuresh authored Jun 16, 2024
2 parents 09b5626 + c6e4b9e commit de2fcf8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions script/download-file/customize.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
def preprocess(i):

os_info = i['os_info']

env = i['env']
meta = i['meta']

Expand Down Expand Up @@ -127,7 +126,8 @@ def preprocess(i):
#verify checksum if file already present
if env.get('CM_DOWNLOAD_CHECKSUM', '') != '':
x='*' if os_info['platform'] == 'windows' else ''
env['CM_DOWNLOAD_CHECKSUM_CMD'] = "echo {} {}{}{}{} | md5sum -c ".format(env.get('CM_DOWNLOAD_CHECKSUM'), x, q, env['CM_DOWNLOAD_FILENAME'], q)
x_c='s' if os_info['platform'] == 'darwin' else ''
env['CM_DOWNLOAD_CHECKSUM_CMD'] = "echo {} {}{}{}{} | md5sum -c{} ".format(env.get('CM_DOWNLOAD_CHECKSUM'), x, q, env['CM_DOWNLOAD_FILENAME'], q, x_c)
else:
env['CM_DOWNLOAD_CHECKSUM_CMD'] = ""

Expand Down

0 comments on commit de2fcf8

Please sign in to comment.