From 92138815f05bde158b2c039bb42a78624d41b473 Mon Sep 17 00:00:00 2001 From: "Ralf W. Grosse-Kunstleve" Date: Fri, 7 Jan 2022 13:16:04 -0800 Subject: [PATCH] Workaround for CUDA 11 breakage. ``` tests/test_constants_and_functions.cpp(140): error: incompatible exception specifications ``` Breakage observed with: ``` -- The CXX compiler identification is GNU 9.3.0 -- The CUDA compiler identification is NVIDIA 11.0.221 ``` --- tests/test_constants_and_functions.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/test_constants_and_functions.cpp b/tests/test_constants_and_functions.cpp index c0554503fa..fb530dc704 100644 --- a/tests/test_constants_and_functions.cpp +++ b/tests/test_constants_and_functions.cpp @@ -56,7 +56,11 @@ int f1(int x) noexcept(true) { return x+1; } int f1(int x) noexcept { return x+1; } #endif int f2(int x) noexcept(true) { return x+2; } +#if defined(__CUDACC__) +int f3(int x) { return x+3; } // noexcept(false) stopped working 2022-01-07 +#else int f3(int x) noexcept(false) { return x+3; } +#endif #if defined(__GNUG__) && !defined(__INTEL_COMPILER) # pragma GCC diagnostic push # pragma GCC diagnostic ignored "-Wdeprecated"