Skip to content

Commit 3026970

Browse files
authored
Merge branch 'dev' into dev
2 parents 2c9738e + 6182a4d commit 3026970

6 files changed

Lines changed: 16 additions & 10 deletions

File tree

.github/workflows/test-mlperf-inference-mlcommons-cpp-resnet50.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ jobs:
2222
exclude:
2323
- os: windows-latest
2424
- os: macos-latest
25+
compiler-string: --adr.compiler.tags=gcc
26+
- os: macos-latest
27+
compiler-string: --adr.compiler.tags=aocc --env.MLC_AOCC_ACCEPT_EULA=yes
2528

2629
steps:
2730
- uses: actions/checkout@v3

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,4 @@ repos.json
2525
index_script.json
2626
index_cache.json
2727
index_experiment.json
28+
*.egg-info/

automation/script/docker_utils.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@ def process_mounts(mounts, env, docker_settings, f_run_cmd, run_state):
4545
if "${{ " + key + " }}:${{ " + key + " }}" not in mounts:
4646
mounts.append("${{ " + key + " }}:${{ " + key + " }}")
4747

48-
docker_input_mapping = docker_settings.get("input_mapping", run_state.get("input_mapping", {}))
48+
docker_input_mapping = docker_settings.get(
49+
"input_mapping", run_state.get("input_mapping", {}))
4950
container_env_string = ""
5051

5152
for index in range(len(mounts)):

automation/script/module.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2658,7 +2658,7 @@ def search(self, i):
26582658

26592659
script_tags = i.get('script_tags', [])
26602660
variation_tags = i.get('variation_tags', [])
2661-
2661+
26622662
if not script_tags and tags_string:
26632663
r = get_variation_and_script_tags(tags_string.strip())
26642664
script_tags = r['script_tags']
@@ -4483,8 +4483,8 @@ def docker(self, i):
44834483
from script.docker import docker_run
44844484
return docker_run(self, i)
44854485

4486-
44874486
############################################################
4487+
44884488
def apptainerfile(self, i):
44894489
from script.apptainer import apptainerfile
44904490
return apptainerfile(self, i)
@@ -4494,6 +4494,7 @@ def apptainer(self, i):
44944494
from script.apptainer import apptainer_run
44954495
return apptainer_run(self, i)
44964496
############################################################
4497+
44974498
def experiment(self, i):
44984499
from script.experiment import experiment_run
44994500
return experiment_run(self, i)
@@ -5929,7 +5930,6 @@ def update_state_from_meta(meta, env, state, const, const_state, run_state, i):
59295930
if folder_path_env_keys:
59305931
run_state['folder_path_env_keys'] += folder_path_env_keys
59315932

5932-
59335933
return {'return': 0}
59345934

59355935
##############################################################################

script/app-mlperf-inference-mlcommons-cpp/customize.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -111,10 +111,9 @@ def preprocess(i):
111111
if '+ LDCXXFLAGS' not in env:
112112
env['+ LDCXXFLAGS'] = []
113113

114-
env['+ LDCXXFLAGS'] += [
115-
"-lmlperf_loadgen",
116-
"-lpthread"
117-
]
114+
env['+ LDCXXFLAGS'].append("-lmlperf_loadgen")
115+
if os_info['platform'] != 'darwin':
116+
env['+ LDCXXFLAGS'].append("-lpthread")
118117

119118
# For PyTorch, link against torch, torch_cpu, and c10
120119
if env.get('MLC_MLPERF_BACKEND', '') == 'pytorch':

script/build-dockerfile/customize.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,8 @@ def preprocess(i):
350350
build_context_dir = os.path.dirname(
351351
env.get('MLC_DOCKERFILE_WITH_PATH',
352352
os.path.join(os.getcwd(), "Dockerfile")))
353-
host_repos_context = os.path.join(build_context_dir, "mlc_host_repos")
353+
host_repos_context = os.path.join(
354+
build_context_dir, "mlc_host_repos")
354355
if os.path.exists(host_repos_context):
355356
shutil.rmtree(host_repos_context)
356357
os.makedirs(host_repos_context, exist_ok=True)
@@ -384,7 +385,8 @@ def preprocess(i):
384385
EOL)
385386
f.write(EOL)
386387
else:
387-
logger.warning(f"MLC_DOCKER_HOST_MLC_REPOS_PATH not found: {host_repos_path}")
388+
logger.warning(
389+
f"MLC_DOCKER_HOST_MLC_REPOS_PATH not found: {host_repos_path}")
388390

389391
elif use_copy_repo:
390392
repo_name = os.path.basename(relative_repo_path)

0 commit comments

Comments
 (0)