File tree Expand file tree Collapse file tree 1 file changed +1
-13
lines changed Expand file tree Collapse file tree 1 file changed +1
-13
lines changed Original file line number Diff line number Diff line change @@ -68,31 +68,19 @@ if ("x${DPCTL_SYCL_TARGETS}" STREQUAL "x")
68
68
endif ()
69
69
set (_dpctl_sycl_targets "nvidia_gpu_${_dpctl_cuda_arch} ,spir64-unknown-unknown" )
70
70
endif ()
71
+
71
72
if (NOT "x${DPCTL_TARGET_HIP} " STREQUAL "x" )
72
73
set (_dpctl_amd_targets ${DPCTL_TARGET_HIP} )
73
74
if (_dpctl_sycl_targets )
74
75
set (_dpctl_sycl_targets "amdgcn-amd-amdhsa,${_dpctl_sycl_targets} " )
75
76
else ()
76
77
set (_dpctl_sycl_targets "amdgcn-amd-amdhsa,spir64-unknown-unknown" )
77
78
endif ()
78
- else ()
79
- if (DEFINED ENV{DPCTL_TARGET_HIP} )
80
- set (_dpctl_amd_targets $ENV{DPCTL_TARGET_HIP} )
81
- if (_dpctl_sycl_targets )
82
- set (_dpctl_sycl_targets "amdgcn-amd-amdhsa,${_dpctl_sycl_targets} " )
83
- else ()
84
- set (_dpctl_sycl_targets "amdgcn-amd-amdhsa,spir64-unknown-unknown" )
85
- endif ()
86
- endif ()
87
79
endif ()
88
80
else ()
89
81
set (_dpctl_sycl_targets ${DPCTL_SYCL_TARGETS} )
90
82
if (NOT "x${DPCTL_TARGET_HIP} " STREQUAL "x" )
91
83
set (_dpctl_amd_targets ${DPCTL_TARGET_HIP} )
92
- else ()
93
- if (DEFINED ENV{DPCTL_TARGET_HIP} )
94
- set (_dpctl_amd_targets $ENV{DPCTL_TARGET_HIP} )
95
- endif ()
96
84
endif ()
97
85
endif ()
98
86
You can’t perform that action at this time.
0 commit comments