Skip to content

Commit 369bc98

Browse files
committed
Change DPCTL_TARGET_AMD to DPCTL_TARGET_HIP
Selecting AMD devices uses the string "HIP" so this change maintains consistency
1 parent 97f5dd9 commit 369bc98

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

CMakeLists.txt

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@ option(DPCTL_TARGET_CUDA
2929
"Build DPCTL to target CUDA devices"
3030
OFF
3131
)
32-
set(DPCTL_TARGET_AMD
32+
set(DPCTL_TARGET_HIP
3333
""
3434
CACHE STRING
35-
"Build DPCTL to target an AMD device architecture"
35+
"Build DPCTL to target a HIP device architecture"
3636
)
3737

3838
find_package(IntelSYCL REQUIRED PATHS ${CMAKE_SOURCE_DIR}/cmake NO_DEFAULT_PATH)
@@ -50,16 +50,16 @@ if ("x${DPCTL_SYCL_TARGETS}" STREQUAL "x")
5050
set(_dpctl_sycl_targets "nvptx64-nvidia-cuda,spir64-unknown-unknown")
5151
endif()
5252
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})
5555
if(_dpctl_sycl_targets)
5656
set(_dpctl_sycl_targets "amdgcn-amd-amdhsa,${_dpctl_sycl_targets}")
5757
else()
5858
set(_dpctl_sycl_targets "amdgcn-amd-amdhsa,spir64-unknown-unknown")
5959
endif()
6060
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})
6363
if(_dpctl_sycl_targets)
6464
set(_dpctl_sycl_targets "amdgcn-amd-amdhsa,${_dpctl_sycl_targets}")
6565
else()
@@ -69,11 +69,11 @@ if ("x${DPCTL_SYCL_TARGETS}" STREQUAL "x")
6969
endif()
7070
else()
7171
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})
7474
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})
7777
endif()
7878
endif()
7979
endif()

0 commit comments

Comments
 (0)