From 0270964ce642bcd4a664d7989136fd54727613ce Mon Sep 17 00:00:00 2001 From: "Elwazir, Ammar" Date: Mon, 14 Apr 2025 08:41:00 -0500 Subject: [PATCH] SWDEV-526393: HSA_TOOLS_LIB is not respected for some pytorch APPs (#24) HSA_TOOLS_LIB is not respected for some pytorch APPs Instead of depending on HSA_TOOLS_LIB, move to depending on LD_PRELOAD for loading the rocprofiler library. [ROCm/rocprofiler commit: f23fe43c299926f461a6e8a9c147c909a7d136b3] --- projects/rocprofiler/bin/rpl_run.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/projects/rocprofiler/bin/rpl_run.sh b/projects/rocprofiler/bin/rpl_run.sh index 9353fa538d..853fe16b30 100755 --- a/projects/rocprofiler/bin/rpl_run.sh +++ b/projects/rocprofiler/bin/rpl_run.sh @@ -93,6 +93,7 @@ unset ROCPROFILER_SESS MY_HSA_TOOLS_LIB="$RPL_PATH/librocprofiler64.so.1" # Tool internal Preloads +ROCPROFV1_LD_PRELOAD=$MY_HSA_TOOLS_LIB ROCPROFV1_TOOL_PRELOAD=$MY_HSA_TOOLS_LIB # Loading of the test tool by ROC Profiler