Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
libiconmath
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
icon-libraries
libiconmath
Commits
04054757
Commit
04054757
authored
2 months ago
by
Pradipta Samanta
Browse files
Options
Downloads
Patches
Plain Diff
build kokkos internally along with the package
parent
64d639c4
No related branches found
Branches containing commit
No related tags found
1 merge request
!37
Draft: C++ port of horizontal/mo_lib_gradients.F90
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CMakeLists.txt
+16
-0
16 additions, 0 deletions
CMakeLists.txt
src/support/CMakeLists.txt
+6
-4
6 additions, 4 deletions
src/support/CMakeLists.txt
with
22 additions
and
4 deletions
CMakeLists.txt
+
16
−
0
View file @
04054757
...
...
@@ -110,6 +110,22 @@ else()
endif
()
endif
()
include
(
FetchContent
)
# configure kokkos 4.4 repository link
FetchContent_Declare
(
kokkos
URL https://github.com/kokkos/kokkos/releases/download/4.4.01/kokkos-4.4.01.tar.gz
URL_HASH MD5=eafd0d42c9831858aa84fde78576644c
)
# disable build of C++23 mdspan experimental support for now
set
(
Kokkos_ENABLE_IMPL_MDSPAN OFF CACHE BOOL
"Experimental mdspan support"
)
# by default, build the Kokkos serial backend for CPU
set
(
Kokkos_ENABLE_SERIAL ON CACHE BOOL
"Kokkos Serial backend"
)
set
(
Kokkos_ARCH_NATIVE ON CACHE BOOL
"Kokkos native architecture optimisations"
)
FetchContent_MakeAvailable
(
kokkos
)
add_subdirectory
(
src
)
# Allow for 'make test' even if the tests are disabled:
...
...
This diff is collapsed.
Click to expand it.
src/support/CMakeLists.txt
+
6
−
4
View file @
04054757
...
...
@@ -57,9 +57,6 @@ if(IM_ENABLE_OPENACC)
endif
()
endif
()
message
(
STATUS
"iconmath-support enabling Kokkos"
)
find_package
(
Kokkos REQUIRED
)
target_include_directories
(
iconmath-support
PUBLIC
...
...
@@ -77,7 +74,12 @@ target_include_directories(
# https://cmake.org/cmake/help/latest/manual/cmake-generator-expressions.7.html
$<BUILD_INTERFACE:$<$<COMPILE_LANGUAGE:C,CXX>:
${
CMAKE_CURRENT_BINARY_DIR
}
>>
)
target_link_libraries
(
iconmath-support PUBLIC fortran-support::fortran-support Kokkos::kokkos
)
target_link_libraries
(
iconmath-support
PUBLIC
fortran-support::fortran-support
PRIVATE
Kokkos::kokkos
)
install
(
TARGETS iconmath-support EXPORT
"
${
PROJECT_NAME
}
-targets"
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment