Skip to content

Commit f30f26d

Browse files
authored
[rocprofiler-compute] Bugfix for avail module detection (#2175)
1 parent 76c36f1 commit f30f26d

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/rocprof_compute_soc/soc_base.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,7 @@
5151
METRIC_ID_RE,
5252
add_counter_extra_config_input_yaml,
5353
convert_metric_id_to_panel_info,
54-
detect_rocprof,
5554
get_panel_alias,
56-
get_submodules,
5755
is_tcc_channel_counter,
5856
mibench,
5957
parse_sets_yaml,
@@ -421,9 +419,9 @@ def get_rocprof_supported_counters(self) -> set[str]:
421419
# <rocm_path>/bin/rocprofv3_avail_module/avail.py to
422420
# <rocm_path>/lib/python3/site-packages/rocprofv3/avail.py
423421
new_path = str(
424-
Path(args.rocprofiler_sdk_tool_path).parents[1] / "python3/site-packages"
422+
Path(args.rocprofiler_sdk_library_path).parent / "python3/site-packages"
425423
)
426-
old_path = str(Path(args.rocprofiler_sdk_tool_path).parents[2] / "bin")
424+
old_path = str(Path(args.rocprofiler_sdk_library_path).parents[1] / "bin")
427425
try:
428426
sys.path.append(new_path)
429427
from rocprofv3 import avail
@@ -439,7 +437,6 @@ def get_rocprof_supported_counters(self) -> set[str]:
439437
except ImportError:
440438
console_error("Failed to import rocprofiler-sdk avail module.")
441439

442-
443440
avail.loadLibrary.libname = str(
444441
Path(args.rocprofiler_sdk_library_path).parent
445442
/ "rocprofiler-sdk"

0 commit comments

Comments
 (0)