Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
demo
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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
Georgiana Mania
demo
Commits
5842adde
Commit
5842adde
authored
2 months ago
by
Georgiana Mania
Browse files
Options
Downloads
Plain Diff
Merge branch 'master' into 'main'
Master See merge request
!3
parents
fb0147f9
10df2da8
No related branches found
No related tags found
1 merge request
!3
Master
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
CMakeLists.txt
+2
-0
2 additions, 0 deletions
CMakeLists.txt
main.cpp
+272
-203
272 additions, 203 deletions
main.cpp
script.sh
+5
-1
5 additions, 1 deletion
script.sh
with
279 additions
and
204 deletions
CMakeLists.txt
+
2
−
0
View file @
5842adde
...
...
@@ -12,6 +12,8 @@ endif ()
# if using kokkos as shared library, -fPIC is needed
set
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
-fPIC"
)
set
(
Kokkos_ENABLE_IMPL_MDSPAN OFF CACHE BOOL
"Experimental mdspan support"
)
# configure kokkos 4.2 repository link
FetchContent_Declare
(
kokkos
URL https://github.com/kokkos/kokkos/releases/download/4.4.01/kokkos-4.4.01.tar.gz
)
...
...
This diff is collapsed.
Click to expand it.
main.cpp
+
272
−
203
View file @
5842adde
This diff is collapsed.
Click to expand it.
script.sh
+
5
−
1
View file @
5842adde
...
...
@@ -8,17 +8,21 @@ ulimit -s unlimited
if
[
"
$1
"
==
'gpu'
]
then
rm
-rf
build_gpu
cmake
-B
build_gpu
-S
.
-DMU_ARCH
=
a100
-DCMAKE_CXX_FLAGS
=
"-O3"
cmake
--build
build_gpu
--parallel
ncells
=(
5000000
)
nlev
=(
90
)
nproma
=(
5000000
)
else
rm
-rf
build
cmake
-B
build
-S
.
-DMU_ARCH
=
x86_64
-DCMAKE_CXX_FLAGS
=
"-O3"
cmake
--build
build
--parallel
ncells
=(
5000000
)
nlev
=(
90
)
nproma
=(
32
)
#
64 96 128)
nproma
=(
32 64 96 128
)
export
OMP_PROC_BIND
=
close
export
OMP_PLACES
=
cores
...
...
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