Add mi300 TCP counter tests (#644)
* Add new sample applications.
* Generalize py test launcher for additional apps.
* Add TCP pytest, and add to ctest.
* Update licensing.
* Disable for non-mi300 machines.
[ROCm/rocprofiler-compute commit: 591632dd69]
This commit is contained in:
@@ -18,13 +18,15 @@ def pytest_addoption(parser):
|
||||
|
||||
@pytest.fixture
|
||||
def binary_handler_profile_rocprof_compute(request):
|
||||
def _handler(config, workload_dir, options=[], check_success=True, roof=False):
|
||||
def _handler(
|
||||
config, workload_dir, options=[], check_success=True, roof=False, app_name="app_1"
|
||||
):
|
||||
if request.config.getoption("--call-binary"):
|
||||
baseline_opts = [
|
||||
"build/rocprof-compute.bin",
|
||||
"profile",
|
||||
"-n",
|
||||
"app_1",
|
||||
app_name,
|
||||
"-VVV",
|
||||
]
|
||||
if not roof:
|
||||
@@ -33,7 +35,7 @@ def binary_handler_profile_rocprof_compute(request):
|
||||
baseline_opts
|
||||
+ options
|
||||
+ ["--path", workload_dir, "--"]
|
||||
+ config["app_1"],
|
||||
+ config[app_name],
|
||||
text=True,
|
||||
)
|
||||
# verify run status
|
||||
@@ -41,7 +43,7 @@ def binary_handler_profile_rocprof_compute(request):
|
||||
assert process.returncode == 0
|
||||
return process.returncode
|
||||
else:
|
||||
baseline_opts = ["rocprof-compute", "profile", "-n", "app_1", "-VVV"]
|
||||
baseline_opts = ["rocprof-compute", "profile", "-n", app_name, "-VVV"]
|
||||
if not roof:
|
||||
baseline_opts.append("--no-roof")
|
||||
with pytest.raises(SystemExit) as e:
|
||||
@@ -50,7 +52,7 @@ def binary_handler_profile_rocprof_compute(request):
|
||||
baseline_opts
|
||||
+ options
|
||||
+ ["--path", workload_dir, "--"]
|
||||
+ config["app_1"],
|
||||
+ config[app_name],
|
||||
):
|
||||
rocprof_compute.main()
|
||||
# verify run status
|
||||
|
||||
Reference in New Issue
Block a user