@@ -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
38
38
find_package (IntelSYCL REQUIRED PATHS ${CMAKE_SOURCE_DIR} /cmake NO_DEFAULT_PATH )
@@ -50,16 +50,16 @@ if ("x${DPCTL_SYCL_TARGETS}" STREQUAL "x")
50
50
set (_dpctl_sycl_targets "nvptx64-nvidia-cuda,spir64-unknown-unknown" )
51
51
endif ()
52
52
endif ()
53
- if (NOT "x${DPCTL_TARGET_AMD } " STREQUAL "x" )
54
- set (_dpctl_amd_targets ${DPCTL_TARGET_AMD } )
53
+ if (NOT "x${DPCTL_TARGET_HIP } " STREQUAL "x" )
54
+ set (_dpctl_amd_targets ${DPCTL_TARGET_HIP } )
55
55
if (_dpctl_sycl_targets )
56
56
set (_dpctl_sycl_targets "amdgcn-amd-amdhsa,${_dpctl_sycl_targets} " )
57
57
else ()
58
58
set (_dpctl_sycl_targets "amdgcn-amd-amdhsa,spir64-unknown-unknown" )
59
59
endif ()
60
60
else ()
61
- if (DEFINED ENV{DPCTL_TARGET_AMD } )
62
- set (_dpctl_amd_targets $ENV{DPCTL_TARGET_AMD } )
61
+ if (DEFINED ENV{DPCTL_TARGET_HIP } )
62
+ set (_dpctl_amd_targets $ENV{DPCTL_TARGET_HIP } )
63
63
if (_dpctl_sycl_targets )
64
64
set (_dpctl_sycl_targets "amdgcn-amd-amdhsa,${_dpctl_sycl_targets} " )
65
65
else ()
@@ -69,11 +69,11 @@ if ("x${DPCTL_SYCL_TARGETS}" STREQUAL "x")
69
69
endif ()
70
70
else ()
71
71
set (_dpctl_sycl_targets ${DPCTL_SYCL_TARGETS} )
72
- if (NOT "x${DPCTL_TARGET_AMD } " STREQUAL "x" )
73
- set (_dpctl_amd_targets ${DPCTL_TARGET_AMD } )
72
+ if (NOT "x${DPCTL_TARGET_HIP } " STREQUAL "x" )
73
+ set (_dpctl_amd_targets ${DPCTL_TARGET_HIP } )
74
74
else ()
75
- if (DEFINED ENV{DPCTL_TARGET_AMD } )
76
- set (_dpctl_amd_targets $ENV{DPCTL_TARGET_AMD } )
75
+ if (DEFINED ENV{DPCTL_TARGET_HIP } )
76
+ set (_dpctl_amd_targets $ENV{DPCTL_TARGET_HIP } )
77
77
endif ()
78
78
endif ()
79
79
endif ()
0 commit comments