diff --git a/CMakeLists.txt b/CMakeLists.txt index a19be6ac22..06b19046d9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -179,8 +179,7 @@ rocprofiler_systems_add_option(ROCPROFSYS_USE_MPI "Enable MPI support" OFF) rocprofiler_systems_add_option(ROCPROFSYS_USE_ROCM "Enable ROCm support" ON) rocprofiler_systems_add_option(ROCPROFSYS_USE_PAPI "Enable HW counter support via PAPI" ON) -rocprofiler_systems_add_option(ROCPROFSYS_USE_RCCL "Enable RCCL support" - ${ROCPROFSYS_USE_ROCM}) +rocprofiler_systems_add_option(ROCPROFSYS_USE_RCCL "Enable RCCL support" OFF) rocprofiler_systems_add_option( ROCPROFSYS_USE_MPI_HEADERS "Enable wrapping MPI functions w/o enabling MPI dependency" ON) diff --git a/source/lib/rocprof-sys/library.cpp b/source/lib/rocprof-sys/library.cpp index 10391aefcc..2328a5f46c 100644 --- a/source/lib/rocprof-sys/library.cpp +++ b/source/lib/rocprof-sys/library.cpp @@ -34,6 +34,7 @@ #include "core/constraint.hpp" #include "core/debug.hpp" #include "core/defines.hpp" +#include "core/dynamic_library.hpp" #include "core/gpu.hpp" #include "core/locking.hpp" #include "core/perfetto_fwd.hpp" @@ -442,6 +443,13 @@ rocprofsys_init_tooling_hidden(bool postinit) return false; } +#if ROCPROFSYS_USE_ROCM > 0 + dynamic_library _amdhip64{ "ROCPROFSYS_ROCTRACER_LIBAMDHIP64", + find_library_path("libamdhip64.so", + { "ROCPROFSYS_ROCM_PATH", "ROCM_PATH" }, + { ROCPROFSYS_DEFAULT_ROCM_PATH }) }; +#endif + static bool _once = false; static auto _debug_init = get_debug_init();