Skip to content

Commit

Permalink
--expt-relaxed-constexpr is not supported in HIP ... see ROCm/HIP#374
Browse files Browse the repository at this point in the history
  • Loading branch information
evaleev committed Sep 18, 2023
1 parent fa52e10 commit 778f3c4
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions external/hip.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,6 @@ cmake_minimum_required(VERSION 3.21.0)
set(CMAKE_HIP_STANDARD 17)
set(CMAKE_HIP_EXTENSIONS OFF)
set(CMAKE_HIP_STANDARD_REQUIRED ON)
# N.B. need relaxed constexpr for std::complex
# see https://docs.nvidia.com/cuda/cuda-c-programming-guide/index.html#constexpr-functions%5B/url%5D:
if (DEFINED CMAKE_HIP_FLAGS)
set(CMAKE_HIP_FLAGS "--expt-relaxed-constexpr ${CMAKE_HIPE_FLAGS}")
else()
set(CMAKE_HIP_FLAGS "--expt-relaxed-constexpr")
endif()
enable_language(HIP)

set(HIP_FOUND TRUE)
Expand Down

0 comments on commit 778f3c4

Please sign in to comment.