P4 to Git Change 1977054 by kzhuravl@kzhuravl-spot-ocl on 2019/08/01 12:32:41
SWDEV-79445 - OCL generic changes and code clean-up - Fix COMGR+CMAKE combination - http://git.amd.com:8080/c/compute/ec/opencl/+/247843 - Fix and clean up packaging (cmake) - http://git.amd.com:8080/c/compute/ec/opencl/+/247844 Affected files ... ... //depot/stg/opencl/drivers/opencl/CMakeLists.txt#26 edit ... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/CMakeLists.txt#19 edit ... //depot/stg/opencl/drivers/opencl/runtime/CMakeLists.txt#16 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/devprogram.cpp#54 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/CMakeLists.txt#21 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocprogram.cpp#104 edit ... //depot/stg/opencl/drivers/opencl/tools/clinfo/CMakeLists.txt#6 edit
This commit is contained in:
@@ -16,6 +16,11 @@ if(CMAKE_BUILD_TYPE MATCHES "^Debug$")
|
||||
add_definitions(-DDEBUG)
|
||||
endif()
|
||||
|
||||
include_directories(${ROCR_INCLUDES})
|
||||
if (DEFINED LLVM_INCLUDES AND NOT ${LLVM_INCLUDES} STREQUAL "")
|
||||
include_directories(${LLVM_INCLUDES})
|
||||
endif() # if (DEFINED LLVM_INCLUDES AND NOT ${LLVM_INCLUDES} STREQUAL "")
|
||||
|
||||
include_directories(${CMAKE_SOURCE_DIR}/runtime)
|
||||
include_directories(${CMAKE_SOURCE_DIR}/api/opencl)
|
||||
include_directories(${CMAKE_SOURCE_DIR}/api/opencl/khronos)
|
||||
@@ -77,4 +82,3 @@ if(${USE_COMGR_LIBRARY} MATCHES "yes")
|
||||
else()
|
||||
target_link_libraries(amdocl64 opencl_driver oclelf pthread dl ${ROCT_LIBRARIES} ${ROCR_LIBRARIES})
|
||||
endif()
|
||||
install(TARGETS amdocl64 LIBRARY DESTINATION lib/x86_64 COMPONENT applications)
|
||||
|
||||
Reference in New Issue
Block a user