From 8a8122874b4dd33f6b935b9a691766c49a4cbfcc Mon Sep 17 00:00:00 2001 From: Rohit Santhanam Date: Thu, 9 Dec 2021 08:04:19 +0000 Subject: [PATCH] Build unit tests for HIP using C++14. --- cmake/EigenTesting.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/EigenTesting.cmake b/cmake/EigenTesting.cmake index 3fce0f561..a03f0f4b0 100644 --- a/cmake/EigenTesting.cmake +++ b/cmake/EigenTesting.cmake @@ -28,7 +28,7 @@ macro(ei_add_test_internal testname testname_with_suffix) set(is_gpu_test ON) if(EIGEN_TEST_HIP) hip_reset_flags() - hip_add_executable(${targetname} ${filename} HIPCC_OPTIONS "-DEIGEN_USE_HIP ${ARGV2}") + hip_add_executable(${targetname} ${filename} HIPCC_OPTIONS "-DEIGEN_USE_HIP -std=c++14 ${ARGV2}") elseif(EIGEN_TEST_CUDA_CLANG) set_source_files_properties(${filename} PROPERTIES LANGUAGE CXX)