File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -61,6 +61,9 @@ def do_configure(args):
61
61
if args .rocm_platform == 'AMD' :
62
62
llvm_targets_to_build += ';AMDGPU'
63
63
libclc_targets_to_build += ';amdgcn--;amdgcn--amdhsa'
64
+
65
+ # The ROCm plugin for AMD uses lld for linking
66
+ llvm_enable_projects += ';lld'
64
67
elif args .rocm_platform == 'NVIDIA' and not args .cuda :
65
68
llvm_targets_to_build += ';NVPTX'
66
69
libclc_targets_to_build += ';nvptx64--;nvptx64--nvidiacl'
Original file line number Diff line number Diff line change @@ -41,6 +41,9 @@ if("${SYCL_BUILD_PI_ROCM_PLATFORM}" STREQUAL "AMD")
41
41
42
42
# Set HIP define to select AMD platform
43
43
target_compile_definitions (pi_rocm PRIVATE __HIP_PLATFORM_AMD__ )
44
+
45
+ # Make sure lld is built as part of the toolchain
46
+ add_dependencies (sycl-toolchain lld )
44
47
elseif ("${SYCL_BUILD_PI_ROCM_PLATFORM} " STREQUAL "NVIDIA" )
45
48
# Import CUDA libraries
46
49
find_package (CUDA REQUIRED )
You can’t perform that action at this time.
0 commit comments