You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: packages/tpetra/CMakeLists.txt
+1-11
Original file line number
Diff line number
Diff line change
@@ -60,16 +60,6 @@ IF (Tpetra_ENABLE_CUDA AND (NOT Kokkos_ENABLE_CUDA))
60
60
MESSAGE (FATAL_ERROR "You set Tpetra_ENABLE_CUDA:BOOL=ON, but Kokkos_ENABLE_CUDA is OFF. TPL_ENABLE_CUDA and Kokkos_ENABLE_CUDA must both be ON before you may set Tpetra_ENABLE_CUDA:BOOL=ON.")
61
61
ENDIF ()
62
62
63
-
# Kokkos and Tpetra require C++11 as of the 12.0 release.
64
-
#
65
-
# I left a special case for CUDA because I'm not sure whether TriBITS
66
-
# counts C++11 as enabled in that case; please feel free to revise if
67
-
# you know better.
68
-
ASSERT_DEFINED(${PROJECT_NAME}_ENABLE_CXX11)
69
-
IF (NOT${PROJECT_NAME}_ENABLE_CXX11 ANDNOT Tpetra_ENABLE_CUDA)
70
-
MESSAGE(FATAL_ERROR "As of Trilinos 12.0, C++11 is REQUIRED when building Kokkos and its downstream packages, which include Tpetra. You MUST enable C++11 when building these packages. Trilinos should enable this by default, if your C++11 compiler supports C++11 (that is, if it's not too old). If you set ${PROJECT_NAME}_ENABLE_CXX11=OFF, then you are disabling C++11. DON'T DO THAT if you want to build Kokkos or its downstream packages, including Tpetra. If you aren't happy about that, then you need to disable Kokkos explicitly, by setting ${PROJECT_NAME}_ENABLE_Kokkos=OFF. This WILL disable Tpetra and its downstream packages.")
71
-
ENDIF ()
72
-
73
63
# Checks that only matter if building with CUDA enabled.
74
64
IF (Tpetra_ENABLE_CUDA)
75
65
# As of 10 Aug 2017, Tpetra requires CUDA >= 7.5.
@@ -96,7 +86,7 @@ IF (Tpetra_ENABLE_CUDA)
96
86
# SET(TpetraCore_FOUND_CUDA_LAMBDA_FLAG ON)
97
87
#ENDIF ()
98
88
#IF (NOT TpetraCore_FOUND_CUDA_LAMBDA_FLAG)
99
-
# MESSAGE (FATAL_ERROR "If building with CUDA, Tpetra and downstream packages require, at least with CUDA_VERSION >= 7.5 and <= 9.0, that you add \"--expt-extended-lambda\" to either Trilinos_CXX11_FLAGS or CMAKE_CXX_FLAGS. You must also set Kokkos_ENABLE_CUDA_LAMBDA:BOOL=ON, if it is not already ON by default.")
89
+
# MESSAGE (FATAL_ERROR "If building with CUDA, Tpetra and downstream packages require, at least with CUDA_VERSION >= 7.5 and <= 9.0, that you add \"--expt-extended-lambda\" to CMAKE_CXX_FLAGS. You must also set Kokkos_ENABLE_CUDA_LAMBDA:BOOL=ON, if it is not already ON by default.")
100
90
#ENDIF ()
101
91
102
92
IF (NOTDEFINED Kokkos_ENABLE_CUDA_LAMBDA ORNOT Kokkos_ENABLE_CUDA_LAMBDA)
0 commit comments