-
Notifications
You must be signed in to change notification settings - Fork 128
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3623 from vicentebolea/kokkos-use-nvcc-wrapper
ci: use nvcc_wrapper in adiosKokkos
- Loading branch information
Showing
8 changed files
with
37 additions
and
26 deletions.
There are no files selected for viewing
Validating CODEOWNERS rules …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#------------------------------------------------------------------------------# | ||
# Distributed under the OSI-approved Apache License, Version 2.0. See | ||
# accompanying file Copyright.txt for details. | ||
#------------------------------------------------------------------------------# | ||
|
||
if (NOT DEFINED Kokkos_CXX_COMPILER) | ||
message(FATAL_ERROR "ADIOS: Kokkos module requires the Kokkos_CXX_COMPILER variable") | ||
endif() | ||
|
||
# CXX Compiler settings only in for this subdir | ||
set(CMAKE_CXX_STANDARD 17) | ||
set(CMAKE_CXX_STANDARD_REQUIRED ON) | ||
set(CMAKE_CXX_COMPILER "${Kokkos_CXX_COMPILER}") | ||
|
||
add_library(adios2_core_kokkos adiosKokkos.h adiosKokkos.cpp) | ||
|
||
set_target_properties(adios2_core_kokkos PROPERTIES | ||
VISIBILITY_INLINES_HIDDEN ON | ||
INCLUDE_DIRECTORIES "$<BUILD_INTERFACE:${ADIOS2_SOURCE_DIR}/source>;$<BUILD_INTERFACE:${ADIOS2_BINARY_DIR}/source>" | ||
EXPORT_NAME core_kokkos | ||
OUTPUT_NAME adios2${ADIOS2_LIBRARY_SUFFIX}_core_kokkos | ||
) | ||
|
||
kokkos_compilation(SOURCE adiosKokkos.cpp) | ||
target_link_libraries(adios2_core_kokkos PRIVATE Kokkos::kokkos) |
File renamed without changes.
File renamed without changes.