@@ -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)
3737option (DPCTL_WITH_REDIST "Build DPCTL assuming DPC++ redistributable is installed into Python prefix" OFF )
3838
@@ -51,16 +51,16 @@ if ("x${DPCTL_SYCL_TARGETS}" STREQUAL "x")
5151 set (_dpctl_sycl_targets "nvptx64-nvidia-cuda,spir64-unknown-unknown" )
5252 endif ()
5353 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 } )
5656 if (_dpctl_sycl_targets)
5757 set (_dpctl_sycl_targets "amdgcn-amd-amdhsa,${_dpctl_sycl_targets} " )
5858 else ()
5959 set (_dpctl_sycl_targets "amdgcn-amd-amdhsa,spir64-unknown-unknown" )
6060 endif ()
6161 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 } )
6464 if (_dpctl_sycl_targets)
6565 set (_dpctl_sycl_targets "amdgcn-amd-amdhsa,${_dpctl_sycl_targets} " )
6666 else ()
@@ -70,11 +70,11 @@ if ("x${DPCTL_SYCL_TARGETS}" STREQUAL "x")
7070 endif ()
7171else ()
7272 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 } )
7575 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 } )
7878 endif ()
7979 endif ()
8080endif ()
0 commit comments