@@ -29,10 +29,10 @@ option(DPCTL_TARGET_CUDA
29
29
"Build DPCTL to target CUDA devices"
30
30
OFF
31
31
)
32
- set (DPCTL_TARGET_AMD
32
+ set (DPCTL_TARGET_HIP
33
33
""
34
34
CACHE STRING
35
- "Build DPCTL to target an AMD device architecture"
35
+ "Build DPCTL to target a HIP device architecture"
36
36
)
37
37
option (DPCTL_WITH_REDIST "Build DPCTL assuming DPC++ redistributable is installed into Python prefix" OFF )
38
38
@@ -51,16 +51,16 @@ if ("x${DPCTL_SYCL_TARGETS}" STREQUAL "x")
51
51
set (_dpctl_sycl_targets "nvptx64-nvidia-cuda,spir64-unknown-unknown" )
52
52
endif ()
53
53
endif ()
54
- if (NOT "x${DPCTL_TARGET_AMD } " STREQUAL "x" )
55
- set (_dpctl_amd_targets ${DPCTL_TARGET_AMD } )
54
+ if (NOT "x${DPCTL_TARGET_HIP } " STREQUAL "x" )
55
+ set (_dpctl_amd_targets ${DPCTL_TARGET_HIP } )
56
56
if (_dpctl_sycl_targets )
57
57
set (_dpctl_sycl_targets "amdgcn-amd-amdhsa,${_dpctl_sycl_targets} " )
58
58
else ()
59
59
set (_dpctl_sycl_targets "amdgcn-amd-amdhsa,spir64-unknown-unknown" )
60
60
endif ()
61
61
else ()
62
- if (DEFINED ENV{DPCTL_TARGET_AMD } )
63
- set (_dpctl_amd_targets $ENV{DPCTL_TARGET_AMD } )
62
+ if (DEFINED ENV{DPCTL_TARGET_HIP } )
63
+ set (_dpctl_amd_targets $ENV{DPCTL_TARGET_HIP } )
64
64
if (_dpctl_sycl_targets )
65
65
set (_dpctl_sycl_targets "amdgcn-amd-amdhsa,${_dpctl_sycl_targets} " )
66
66
else ()
@@ -70,11 +70,11 @@ if ("x${DPCTL_SYCL_TARGETS}" STREQUAL "x")
70
70
endif ()
71
71
else ()
72
72
set (_dpctl_sycl_targets ${DPCTL_SYCL_TARGETS} )
73
- if (NOT "x${DPCTL_TARGET_AMD } " STREQUAL "x" )
74
- set (_dpctl_amd_targets ${DPCTL_TARGET_AMD } )
73
+ if (NOT "x${DPCTL_TARGET_HIP } " STREQUAL "x" )
74
+ set (_dpctl_amd_targets ${DPCTL_TARGET_HIP } )
75
75
else ()
76
- if (DEFINED ENV{DPCTL_TARGET_AMD } )
77
- set (_dpctl_amd_targets $ENV{DPCTL_TARGET_AMD } )
76
+ if (DEFINED ENV{DPCTL_TARGET_HIP } )
77
+ set (_dpctl_amd_targets $ENV{DPCTL_TARGET_HIP } )
78
78
endif ()
79
79
endif ()
80
80
endif ()
0 commit comments