Skip to content

Commit

Permalink
Merge pull request #442 from GATEOverflow/mlperf-inference
Browse files Browse the repository at this point in the history
Testing CM Test automation
  • Loading branch information
arjunsuresh authored Oct 30, 2024
2 parents 31f0902 + 5a4771b commit 47f1dcb
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test-nvidia-mlperf-implementation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: MLPerf Inference Nvidia implementations

on:
schedule:
- cron: "25 21 * * *" #to be adjusted
- cron: "19 11 * * *" #to be adjusted

jobs:
build_nvidia:
Expand Down
19 changes: 18 additions & 1 deletion automation/script/module.py
Original file line number Diff line number Diff line change
Expand Up @@ -2428,7 +2428,24 @@ def test(self, i):

if console:
logging.info(path)
logging.info(' Test: TBD')
test_config = meta.get('tests', '')
if test_config:
log.info(test_config)
test_all_variations = test_config.get('test-all-variations', False)
if test_all_variations:
variations = meta.get("variations")
individual_variations = [ v for v in variations if variations[v].get('group', '') == '' and str(variations[v].get('exclude-in-test', '')).lower() not in [ "1", "true", "yes" ] ]
tags_string = ",".join(meta.get("tags"))
for variation in individual_variations:
run_tags = f"{tags_string},_{variation}"
r = self.cmind.access({'action':'run',
'automation':'script',
'tags': run_tags,
'quiet': i.get('quiet') })
if r['return'] > 0:
return r

logging.info(' Test: WIP')


return {'return':0, 'list': lst}
Expand Down
3 changes: 3 additions & 0 deletions script/get-generic-sys-util/_cm.json
Original file line number Diff line number Diff line change
Expand Up @@ -721,5 +721,8 @@
}
}
}
},
"tests": {
"test-all-variations": "yes"
}
}

0 comments on commit 47f1dcb

Please sign in to comment.