Skip to content

Commit

Permalink
Merge pull request #149 from ndellingwood/issue-148
Browse files Browse the repository at this point in the history
CMakeLists update for issue 148
  • Loading branch information
ndellingwood authored Mar 15, 2018
2 parents ef39d9a + 3f25e9f commit 28c335c
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,10 @@ TRIBITS_ADD_OPTION_AND_DEFINE(
LIST(APPEND DEVICE_LIST "<Cuda,CudaUVMSpace>")
ENDIF()

IF( Trilinos_ENABLE_COMPLEX_DOUBLE AND ((NOT DEFINED CMAKE_CXX_USE_RESPONSE_FILE_FOR_OBJECTS) OR (NOT CMAKE_CXX_USE_RESPONSE_FILE_FOR_OBJECTS)) )
MESSAGE( WARNING "The CMake option CMAKE_CXX_USE_RESPONSE_FILE_FOR_OBJECTS is either undefined or OFF. Please set CMAKE_CXX_USE_RESPONSE_FILE_FOR_OBJECTS:BOOL=ON when building with CUDA and complex double enabled.")
ENDIF()

ENDIF()

IF(${Kokkos_ENABLE_Serial} OR ${Kokkos_ENABLE_Pthread} OR ${Kokkos_ENABLE_OpenMP})
Expand Down
17 changes: 16 additions & 1 deletion README
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ Building Kokkoskernels
example/buildlib/compileKokkosKernels.sh for your environment
and run it to generate the required makefiles.
- KOKKOS_DEVICES can be as below. You can remove any backend
that you don't need. If cuda backend is used, CXX compiler should point to ${KOKKOS_PATH}/config/nvcc_wrapper.
that you don't need. If cuda backend is used, CXX compiler should point to ${KOKKOS_PATH}/bin/nvcc_wrapper.
If you enable Cuda, a host space, either OpenMP or Serial should be enabled.
KOKKOS_DEVICES=OpenMP,Serial,Cuda

Expand All @@ -82,9 +82,24 @@ Building Kokkoskernels

For the architecture flags, run below command.
%: scripts/generate_makefile.bash --help

2. Run "make build-test" to compile the tests.


Comments for building Trilinos with Kokkoskernels
----------------------
- For Trilinos builds with the Cuda backend and complex double enabled with ETI,
the cmake option below may need to be set to avoid Error 127 errors:
CMAKE_CXX_USE_RESPONSE_FILE_FOR_OBJECTS:BOOL=ON

If the option above is not set, a warning will be issued during configuration:

"The CMake option CMAKE_CXX_USE_RESPONSE_FILE_FOR_OBJECTS is either
undefined or OFF. Please set
CMAKE_CXX_USE_RESPONSE_FILE_FOR_OBJECTS:BOOL=ON when building with CUDA and
complex double enabled."


Using Kokkoskernels Test Drivers
--------------------------

Expand Down

0 comments on commit 28c335c

Please sign in to comment.