From 778f3c42a8f9379e6f5ab41f4d8538ab11d075f5 Mon Sep 17 00:00:00 2001 From: Eduard Valeyev Date: Sun, 17 Sep 2023 20:08:55 -0400 Subject: [PATCH] --expt-relaxed-constexpr is not supported in HIP ... see https://github.com/ROCm-Developer-Tools/HIP/issues/374 --- external/hip.cmake | 7 ------- 1 file changed, 7 deletions(-) diff --git a/external/hip.cmake b/external/hip.cmake index 53a28a4caa..91a9e2cd82 100644 --- a/external/hip.cmake +++ b/external/hip.cmake @@ -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)