File tree Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ if ("x${DPCTL_SYCL_TARGETS}" STREQUAL "x")
66
66
"Expected 'ON' or an architecture like 'sm_80'."
67
67
)
68
68
endif ()
69
- set (_dpctl_sycl_targets "nvptx64-nvidia-cuda ,spir64-unknown-unknown" )
69
+ set (_dpctl_sycl_targets "nvidia_gpu_ ${_dpctl_cuda_arch} ,spir64-unknown-unknown" )
70
70
endif ()
71
71
if (NOT "x${DPCTL_TARGET_HIP} " STREQUAL "x" )
72
72
set (_dpctl_amd_targets ${DPCTL_TARGET_HIP} )
@@ -100,10 +100,6 @@ if (_dpctl_sycl_targets)
100
100
message (STATUS "Compiling for -fsycl-targets=${_dpctl_sycl_targets} " )
101
101
list (APPEND _dpctl_sycl_target_compile_options -fsycl-targets=${_dpctl_sycl_targets} )
102
102
list (APPEND _dpctl_sycl_target_link_options -fsycl-targets=${_dpctl_sycl_targets} )
103
- if (_dpctl_cuda_arch )
104
- list (APPEND _dpctl_sycl_target_compile_options -Xsycl-target-backend=nvptx64-nvidia-cuda --offload-arch=${_dpctl_cuda_arch} )
105
- list (APPEND _dpctl_sycl_target_link_options -Xsycl-target-backend=nvptx64-nvidia-cuda --offload-arch=${_dpctl_cuda_arch} )
106
- endif ()
107
103
if (_dpctl_amd_targets )
108
104
list (APPEND _dpctl_sycl_target_compile_options -Xsycl-target-backend=amdgcn-amd-amdhsa --offload-arch=${_dpctl_amd_targets} )
109
105
list (APPEND _dpctl_sycl_target_link_options -Xsycl-target-backend=amdgcn-amd-amdhsa --offload-arch=${_dpctl_amd_targets} )
You can’t perform that action at this time.
0 commit comments