Skip to content

Commit a34fcd7

Browse files
committed
GPU: Force HIP to C++17 compilation
1 parent 7bf6ebe commit a34fcd7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

dependencies/FindO2GPU.cmake

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,8 @@ endif()
202202

203203
# Detect and enable HIP
204204
if(ENABLE_HIP)
205+
set(CMAKE_HIP_STANDARD 17)
206+
set(CMAKE_HIP_STANDARD_REQUIRED TRUE)
205207
if(HIP_AMDGPUTARGET)
206208
set(AMDGPU_TARGETS "${HIP_AMDGPUTARGET}" CACHE STRING "AMD GPU targets to compile for" FORCE)
207209
set(GPU_TARGETS "${HIP_AMDGPUTARGET}" CACHE STRING "AMD GPU targets to compile for" FORCE)

0 commit comments

Comments
 (0)