b79ce10fee
* RPATH to rocprofiler_LIBRARY_DIR for ROCm < v5.2 - until v5.2 only librocprofiler64.so was symlinked in /opt/rocm. Thus linker using SOVERSION caused issues finding librocprofiler64.so.1 * Test ROCm w/ CMAKE_INSTALL_RPATH_USE_LINK_PATH=OFF * INSTALL_RPATH_USE_LINK_PATH for omnitrace exe
25 satır
802 B
CMake
25 satır
802 B
CMake
# ----------------------------------------------------------------------------- #
|
|
#
|
|
# omnitrace: contains all instrumentation functionality
|
|
#
|
|
# omnitrace-dl: contains minimal symbols and dlopen's omnitrace
|
|
#
|
|
# omnitrace-user: contains symbols for user API
|
|
#
|
|
# ----------------------------------------------------------------------------- #
|
|
|
|
if(OMNITRACE_USE_ROCPROFILER
|
|
AND rocprofiler_LIBRARY_DIR
|
|
AND ROCmVersion_TRIPLE_VERSION VERSION_LESS 5.2.0
|
|
AND NOT CMAKE_INSTALL_RPATH_USE_LINK_PATH)
|
|
set(OMNITRACE_LIB_INSTALL_RPATH
|
|
"\$ORIGIN:\$ORIGIN/omnitrace:${rocprofiler_LIBRARY_DIR}")
|
|
else()
|
|
set(OMNITRACE_LIB_INSTALL_RPATH "\$ORIGIN:\$ORIGIN/omnitrace")
|
|
endif()
|
|
|
|
add_subdirectory(common)
|
|
add_subdirectory(omnitrace)
|
|
add_subdirectory(omnitrace-dl)
|
|
add_subdirectory(omnitrace-user)
|