introduce runtime config{} list - update launch_omniperf() routine to
include this argument Signed-off-by: Karl W Schulz <karl.schulz@amd.com>
This commit is contained in:
کامیت شده توسط
Karl W. Schulz
والد
a40a667bd5
کامیت
3acba4ccda
+181
-319
تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
Diff را بارگزاری کن
@@ -102,24 +102,23 @@ def check_csv_files(output_dir, num_kernels):
|
||||
return file_dict
|
||||
|
||||
|
||||
def launch_omniperf(
|
||||
options, workload_dir, app, omniperf, check_success=True, check_failure=False
|
||||
):
|
||||
def launch_omniperf(config, options, workload_dir, check_success=True):
|
||||
"""Launch Omniperf with command-line optoins
|
||||
|
||||
Args:
|
||||
config (list): runtime configuration settings
|
||||
options (list): command line options to provide to omniperf
|
||||
workload_dir (string): desired output directory
|
||||
app (list): application to run (with associated options)
|
||||
omniperf (SourceFileLoader): omniperf execution module
|
||||
check_success (bool, optional): Whether to verify successful exit condition. Defaults to True.
|
||||
|
||||
Returns:
|
||||
exception: SystemExit exception
|
||||
"""
|
||||
with pytest.raises(SystemExit) as e:
|
||||
with patch("sys.argv", options + ["--path", workload_dir, "--"] + app):
|
||||
omniperf.main()
|
||||
with patch(
|
||||
"sys.argv", options + ["--path", workload_dir, "--"] + config["app_1"]
|
||||
):
|
||||
config["omniperf"].main()
|
||||
|
||||
# verify run status
|
||||
if check_success:
|
||||
|
||||
مرجع در شماره جدید
Block a user