[rocprofiler-compute] Test env. vars. in rocprofiler-sdk backend (#2414)
* Test env. vars. in rocprofiler-sdk backend * Improve rocprofiler-sdk backend test case to check for env. vars. and ensure we do not overwrite irrelevant env. vars. * Remove unnecessary usage of ROCPROF_INDIVIDUAL_XCC_MODE env. var. * Formatting fixes * Test fixes * Remove redundant code in tests * Remove usage of utils_mod and use utils instead, this prevents duplicate imports
This commit is contained in:
@@ -776,17 +776,6 @@ def run_prof(
|
|||||||
f"ROCPROFILER_METRICS_PATH={new_env['ROCPROFILER_METRICS_PATH']}"
|
f"ROCPROFILER_METRICS_PATH={new_env['ROCPROFILER_METRICS_PATH']}"
|
||||||
)
|
)
|
||||||
|
|
||||||
# set required env var for >= mi300
|
|
||||||
if mspec.gpu_model.lower() not in (
|
|
||||||
"mi50",
|
|
||||||
"mi60",
|
|
||||||
"mi100",
|
|
||||||
"mi210",
|
|
||||||
"mi250",
|
|
||||||
"mi250x",
|
|
||||||
):
|
|
||||||
new_env["ROCPROFILER_INDIVIDUAL_XCC_MODE"] = "1"
|
|
||||||
|
|
||||||
time_1 = time.time()
|
time_1 = time.time()
|
||||||
|
|
||||||
output_path = Path(workload_dir + "/out/pmc_1")
|
output_path = Path(workload_dir + "/out/pmc_1")
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user