Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test #2

Closed
wants to merge 8 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/test-mlperf-inference-abtf-poc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ name: MLPerf inference ABTF POC Test

on:
pull_request_target:
branches: [ "main", "mlperf-inference" ]
branches: [ "main", "mlperf-inference", "test" ]
paths:
- '.github/workflows/test-mlperf-inference-abtf-poc.yml'
- '**'
Expand Down Expand Up @@ -37,7 +37,7 @@ jobs:
cm pull repo mlcommons@cm4abtf --branch=poc
- name: Test MLPerf Inference ABTF POC using ${{ matrix.backend }} on docker
run: |
cm run script --tags=run-abtf,inference,_poc-demo --adr.compiler.tags=gcc --quiet --docker --docker_it=no -v --gh_token=${{ secrets.ABTF_ACCESS_TOKEN }}
cm run script --tags=run-abtf,inference,_poc-demo --adr.compiler.tags=gcc --quiet -v --gh_token=${{ secrets.ABTF_ACCESS_TOKEN }}

build2:
runs-on: ${{ matrix.os }}
Expand Down
10 changes: 8 additions & 2 deletions script/download-file/customize.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def preprocess(i):
verify_ssl = env.get('CM_VERIFY_SSL', "True")
if str(verify_ssl).lower() in [ "no", "false" ]:
verify_ssl = False
if tool == 'wget':
if tool == 'wget' or tool == "gdown":
extra_download_options += " --no-check-certificate"
else:
verify_ssl = True
Expand Down Expand Up @@ -113,7 +113,13 @@ def preprocess(i):
if env.get('CM_RCLONE_CONFIG_CMD', '') != '':
env['CM_DOWNLOAD_CONFIG_CMD'] = env['CM_RCLONE_CONFIG_CMD']
rclone_copy_using = env.get('CM_RCLONE_COPY_USING', 'sync')
env['CM_DOWNLOAD_CMD'] = f"rclone {rclone_copy_using} {q}{url}{q} {q}{os.path.join(os.getcwd(), env['CM_DOWNLOAD_FILENAME'])}{q} -P"
if env["CM_HOST_OS_TYPE"] == "windows":
# have to modify the variable from url to temp_url if it is going to be used anywhere after this point
url = url.replace("%", "%%")
temp_download_file = env['CM_DOWNLOAD_FILENAME'].replace("%", "%%")
env['CM_DOWNLOAD_CMD'] = f"rclone {rclone_copy_using} {q}{url}{q} {q}{os.path.join(os.getcwd(), temp_download_file)}{q} -P"
else:
env['CM_DOWNLOAD_CMD'] = f"rclone {rclone_copy_using} {q}{url}{q} {q}{os.path.join(os.getcwd(), env['CM_DOWNLOAD_FILENAME'])}{q} -P"

filename = env['CM_DOWNLOAD_FILENAME']
env['CM_DOWNLOAD_DOWNLOADED_FILENAME'] = filename
Expand Down
3 changes: 3 additions & 0 deletions script/get-rclone/customize.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ def preprocess(i):
cur_dir = os.getcwd()
path_bin = os.path.join(cur_dir, file_name)
env['CM_RCLONE_BIN_WITH_PATH'] = path_bin
print(path_bin)
if env["CM_HOST_OS_TYPE"] != "windows":
env['+PATH']=[cur_dir]

r = automation.run_native_script({'run_script_input':run_script_input,
'env':env,
Expand Down
Loading