Skip to content

Commit

Permalink
Latest submodule versions
Browse files Browse the repository at this point in the history
  • Loading branch information
brryan committed Sep 25, 2024
1 parent fdb05d9 commit 7781754
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 16 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,10 @@ target_include_directories(singularity-opac::flags
INTERFACE
$<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}>)

include (SetupDeps)
include (SetupOptions)
include (SetupCompilers)
include (SetupFlags)
include (SetupDeps)
include (SetupCompilers)

if (SINGULARITY_USE_HDF5)
message(STATUS "HDF5 enabled. Requesting it in spiner")
Expand Down
14 changes: 7 additions & 7 deletions cmake/SetupDeps.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,20 @@ endif()
# Setup ports of call
# - provides PortsofCall::PortsofCall
#=======================================
get_target_property(defs ${PROJECT_NAME} INTERFACE_COMPILE_DEFINITIONS)
message(STATUS "POC Compile Definitions for ${PROJECT_NAME}: ${defs}")
find_package(PortsofCall REQUIRED)
target_link_libraries(singularity-opac::flags INTERFACE PortsofCall::PortsofCall)

#=======================================
# Setup Kokkos
# - provides Kokkos::kokkos
#=======================================
if (SINGULARITY_USE_KOKKOS)
if (NOT TARGET Kokkos::kokkos)
add_subdirectory(utils/kokkos)
find_package(Kokkos QUIET)
else()
message(status "Kokkos::kokkos provided by parent package")
endif()
if (NOT TARGET Kokkos::kokkos)
add_subdirectory(utils/kokkos)
find_package(Kokkos QUIET)
else()
message(status "Kokkos::kokkos provided by parent package")
endif()

#=======================================
Expand Down
11 changes: 8 additions & 3 deletions cmake/SetupFlags.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -63,17 +63,22 @@ INTERFACE
> # with_kokkos
)

get_target_property(defs ${PROJECT_NAME} INTERFACE_COMPILE_DEFINITIONS)
message(STATUS "BEFORE compile Definitions for ${PROJECT_NAME}: ${defs}")
target_compile_definitions(${PROJECT_NAME}
INTERFACE
$<${with_kokkos}:
PORTABILITY_STRATEGY_KOKKOS
>
#$<${with_kokkos}:
# PORTABILITY_STRATEGY_KOKKOS
#>
$<${without_kokkos}:
$<${with_fmath}:
SINGULARITY_USE_FMATH
>
PORTABILITY_STRATEGY_NONE
>
)
get_target_property(defs ${PROJECT_NAME} INTERFACE_COMPILE_DEFINITIONS)
message(STATUS "Compile Definitions for ${PROJECT_NAME}: ${defs}")

# target_link_libraries brings in compile flags, compile defs, link flags.
target_link_libraries(${PROJECT_NAME}
Expand Down
2 changes: 1 addition & 1 deletion utils/kokkos
Submodule kokkos updated 1532 files
2 changes: 1 addition & 1 deletion utils/ports-of-call
2 changes: 1 addition & 1 deletion utils/variant

0 comments on commit 7781754

Please sign in to comment.