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
Compare revisions
2ee992ae92e2eb0bba4545b643e2c8e974860900 to 047f3330605919f45a91165fe3736cf8f871d2c2
Compare revisions
Changes are shown as if the
source
revision was being merged into the
target
revision.
Learn more about comparing revisions.
Source
k202174/demo
Select target project
No results found
047f3330605919f45a91165fe3736cf8f871d2c2
Select Git revision
Swap
Target
k202174/demo
Select target project
k202174/demo
1 result
2ee992ae92e2eb0bba4545b643e2c8e974860900
Select Git revision
Show changes
Only incoming changes from source
Include changes to target since source was created
Compare
Commits on Source (2)
Disable 1c use case (2d view no longer works)
· 60372a86
Panos Adamidis
authored
1 month ago
and
Joerg Behrens
committed
1 month ago
60372a86
cleanup and debug support + better test
· 047f3330
Joerg Behrens
authored
1 month ago
047f3330
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
debug_script.sh
+49
-0
49 additions, 0 deletions
debug_script.sh
icon_loops.hpp
+3
-0
3 additions, 0 deletions
icon_loops.hpp
main.cpp
+240
-167
240 additions, 167 deletions
main.cpp
script.sh
+4
-3
4 additions, 3 deletions
script.sh
set_env.sh
+5
-0
5 additions, 0 deletions
set_env.sh
with
301 additions
and
170 deletions
debug_script.sh
0 → 100755
View file @
047f3330
#!/bin/bash
#gcc
#nvhpc/24.7-gcc-11.2.0
#export LD_LIBRARY_PATH
ulimit
-s
unlimited
set
-e
if
[
"
$1
"
==
'gpu'
]
then
#rm -rf build_gpu
cmake
-B
build_gpu
-S
.
-DMU_ARCH
=
a100
-DCMAKE_CXX_FLAGS
=
"-O0 -g"
cmake
--build
build_gpu
--parallel
ncells
=(
8
)
nlev
=(
3
)
nproma
=(
2
)
# more than one block to check correctness
else
#rm -rf build
cmake
-B
build
-S
.
-DMU_ARCH
=
x86_64
-DCMAKE_CXX_FLAGS
=
"-O0 -g"
cmake
--build
build
--parallel
ncells
=(
8
)
nlev
=(
3
)
nproma
=(
2
)
#(32 64 96 128)
export
OMP_PROC_BIND
=
close
export
OMP_PLACES
=
cores
export
OMP_NUM_THREADS
=
8
fi
for
jb
in
${
ncells
[*]
}
;
do
for
jk
in
${
nlev
[*]
}
;
do
for
jc
in
${
nproma
[*]
}
;
do
export
NPROMA
=
$jc
export
NLEV
=
$jk
export
NCELLS
=
$jb
if
[
"
$1
"
==
'gpu'
]
then
./build_gpu/demo
else
./build/demo
fi
echo
"---"
done
done
done
This diff is collapsed.
Click to expand it.
icon_loops.hpp
View file @
047f3330
...
...
@@ -3,6 +3,9 @@
#include
<Kokkos_Core.hpp>
#define outer_lambda [=]
#define inner_lambda KOKKOS_LAMBDA
namespace
icon_loops
{
constexpr
bool
exec_on_device
()
{
...
...
This diff is collapsed.
Click to expand it.
main.cpp
View file @
047f3330
This diff is collapsed.
Click to expand it.
script.sh
View file @
047f3330
...
...
@@ -14,15 +14,15 @@ then
cmake
-B
build_gpu
-S
.
-DMU_ARCH
=
a100
-DCMAKE_CXX_FLAGS
=
"-O3"
cmake
--build
build_gpu
--parallel
ncells
=(
50000
00
)
ncells
=(
50000
64
)
nlev
=(
90
)
nproma
=(
50000
00
)
nproma
=(
50000
64
)
else
#rm -rf build
cmake
-B
build
-S
.
-DMU_ARCH
=
x86_64
-DCMAKE_CXX_FLAGS
=
"-O3"
cmake
--build
build
--parallel
ncells
=(
50000
00
)
ncells
=(
50000
64
)
nlev
=(
90
)
nproma
=(
32 64 96 128
)
...
...
@@ -42,6 +42,7 @@ for jb in ${ncells[*]}; do
./build_gpu/demo
else
./build/demo
echo
"---"
fi
done
done
...
...
This diff is collapsed.
Click to expand it.
set_env.sh
0 → 100644
View file @
047f3330
#source this
module load gcc nvhpc
LD_LIBRARY_PATH
=
/sw/spack-levante/gcc-11.2.0-bcn7mb/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../lib64/:
$LD_LIBRARY_PATH
This diff is collapsed.
Click to expand it.