Adding RUNPATH to find libhsakmt.so for Centos and SLES
- This new path is required when libhsaruntime.so is referred from the top level ROCm lib directory. - Once ROCm stack lib/lib64 structure is flatten, RUNPATH in all the libraries needs to be updated. Change-Id: I369131ce93e14958ec57a54701671f2bfd8d522a Signed-off-by: Pruthvi Madugundu <pruthvi.madugundu@amd.com>
这个提交包含在:
1 父节点
3e9aca0f34
当前提交
e931fd424b
3 个文件已更改
+6
-6
没有与搜索条件相匹配的文件
@@ -111,7 +111,7 @@ include_directories ( ${CMAKE_CURRENT_SOURCE_DIR}/libamdhsacode )
|
||||
add_definitions ( -DROCR_BUILD_ID=${PACKAGE_VERSION_STRING} )
|
||||
|
||||
## Set RUNPATH - ../../lib covers use of the legacy symlink in /hsa/lib/
|
||||
set(CMAKE_INSTALL_RPATH "$ORIGIN;$ORIGIN/../../lib;$ORIGIN/../../lib64")
|
||||
set(CMAKE_INSTALL_RPATH "$ORIGIN;$ORIGIN/../../lib;$ORIGIN/../../lib64;$ORIGIN/../lib64")
|
||||
|
||||
## ------------------------- Linux Compiler and Linker options -------------------------
|
||||
set ( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Werror -fexceptions -fno-rtti -fvisibility=hidden -Wno-error=sign-compare -Wno-sign-compare -Wno-write-strings -Wno-conversion-null -fno-math-errno -fno-threadsafe-statics -fmerge-all-constants -fms-extensions -Wno-error=comment -Wno-comment -Wno-error=pointer-arith -Wno-pointer-arith -Wno-error=unused-variable -Wno-error=unused-function" )
|
||||
|
||||
在新工单中引用
屏蔽一个用户