P4 to Git Change 1410629 by lmoriche@lmoriche_palamida on 2017/05/17 11:27:06
SWDEV-102733 - [OCL-LC-ROCm] Cmake build Write CMakeLists.txt to enable building with and without the DK environment - Add FindROCR.cmake, and use find_package() to locate the ROCR Affected files ... ... //depot/stg/opencl/drivers/opencl/CMakeLists.txt#8 edit ... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/CMakeLists.txt#5 edit ... //depot/stg/opencl/drivers/opencl/cmake/modules/FindROCR.cmake#1 add ... //depot/stg/opencl/drivers/opencl/runtime/CMakeLists.txt#3 edit
This commit is contained in:
@@ -1,5 +1,3 @@
|
||||
find_library(HSA_LIB hsa-runtime64 HINTS /opt/rocm/lib)
|
||||
|
||||
set(CMAKE_CXX_FLAGS "-std=c++11")
|
||||
set(CMAKE_SHARED_LINKER_FLAGS "-Wl,-Bsymbolic -Wl,--unresolved-symbols=report-all -Wl,--version-script=${CMAKE_SOURCE_DIR}/api/opencl/amdocl/amdocl.map")
|
||||
|
||||
@@ -46,4 +44,4 @@ add_library(amdocl64 SHARED
|
||||
$<TARGET_OBJECTS:oclrocm>
|
||||
)
|
||||
|
||||
target_link_libraries(amdocl64 opencl_driver oclelf pthread dl ${HSA_LIB})
|
||||
target_link_libraries(amdocl64 opencl_driver oclelf pthread dl ${ROCR_LIBRARIES})
|
||||
|
||||
Reference in New Issue
Block a user