File tree 5 files changed +18
-9
lines changed 5 files changed +18
-9
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,8 @@ target_include_directories(gpu_loader PUBLIC
4
4
${CMAKE_CURRENT_SOURCE_DIR}
5
5
${LIBC_SOURCE_DIR} /include
6
6
${LIBC_SOURCE_DIR}
7
+ ${LLVM_MAIN_INCLUDE_DIR}
8
+ ${LLVM_BINARY_DIR} /include )
7
9
)
8
10
9
11
find_package (hsa-runtime64 QUIET 1.2.0 HINTS ${CMAKE_INSTALL_PREFIX} PATHS /opt/rocm)
Original file line number Diff line number Diff line change 1
- add_executable (amdhsa-loader Loader.cpp)
1
+ set (LLVM_LINK_COMPONENTS
2
+ BinaryFormat
3
+ Object
4
+ Option
5
+ Support
6
+ )
7
+
8
+ add_llvm_executable(amdhsa-loader amdhsa-loader.cpp)
2
9
3
10
target_link_libraries (amdhsa-loader
4
11
PRIVATE
File renamed without changes.
Original file line number Diff line number Diff line change 1
- add_executable (nvptx-loader Loader.cpp)
1
+ set (LLVM_LINK_COMPONENTS
2
+ BinaryFormat
3
+ Object
4
+ Option
5
+ Support
6
+ )
7
+
8
+ add_llvm_executable(nvptx-loader nvptx-loader.cpp)
2
9
3
- if (NOT LLVM_ENABLE_RTTI)
4
- target_compile_options (nvptx-loader PRIVATE -fno-rtti)
5
- endif ()
6
- target_include_directories (nvptx-loader PRIVATE
7
- ${LLVM_MAIN_INCLUDE_DIR} ${LLVM_BINARY_DIR} /include )
8
10
target_link_libraries (nvptx-loader
9
11
PRIVATE
10
12
gpu_loader
11
13
llvmlibc_rpc_server
12
14
CUDA::cuda_driver
13
- LLVMObject
14
- LLVMSupport
15
15
)
File renamed without changes.
You can’t perform that action at this time.
0 commit comments