Skip to content

Commit

Permalink
Export VERSION for mlperf inference src
Browse files Browse the repository at this point in the history
  • Loading branch information
arjunsuresh committed Oct 21, 2024
1 parent 4e954c3 commit 2ba815e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions script/get-mlperf-inference-src/_cm.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
"CM_MLPERF_INFERENCE_GPTJ_PATH",
"CM_MLPERF_INFERENCE_RNNT_PATH",
"CM_MLPERF_INFERENCE_SOURCE",
"CM_MLPERF_INFERENCE_SOURCE_VERSION",
"CM_MLPERF_INFERENCE_VERSION",
"CM_MLPERF_INFERENCE_VISION_PATH",
"CM_MLPERF_LAST_RELEASE",
Expand Down
5 changes: 5 additions & 0 deletions script/get-mlperf-inference-src/customize.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,11 @@ def postprocess(i):
env['+PYTHONPATH']=[]
env['+PYTHONPATH'].append(os.path.join(env['CM_MLPERF_INFERENCE_CLASSIFICATION_AND_DETECTION_PATH'], 'python'))

if os.path.exists(os.path.join(inference_root, "loadgen", "VERSION")):
with open(os.path.join(inference_root, "loadgen", "VERSION") as f:
version_info = f.read()
env['CM_MLPERF_INFERENCE_SOURCE_VERSION'] = version_info

if env.get('CM_GET_MLPERF_IMPLEMENTATION_ONLY', '') == "yes":
return {'return':0}

Expand Down

0 comments on commit 2ba815e

Please sign in to comment.