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")
6666 "Expected 'ON' or an architecture like 'sm_80'."
6767 )
6868 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" )
7070 endif ()
7171 if (NOT "x${DPCTL_TARGET_HIP} " STREQUAL "x" )
7272 set (_dpctl_amd_targets ${DPCTL_TARGET_HIP} )
@@ -100,10 +100,6 @@ if (_dpctl_sycl_targets)
100100 message (STATUS "Compiling for -fsycl-targets=${_dpctl_sycl_targets} " )
101101 list (APPEND _dpctl_sycl_target_compile_options -fsycl-targets=${_dpctl_sycl_targets} )
102102 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 ()
107103 if (_dpctl_amd_targets)
108104 list (APPEND _dpctl_sycl_target_compile_options -Xsycl-target -backend=amdgcn-amd-amdhsa --offload-arch=${_dpctl_amd_targets} )
109105 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