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
9b73fcf4
Commit
9b73fcf4
authored
1 month ago
by
Harshada Balasubramanian
Browse files
Options
Downloads
Patches
Plain Diff
with Kokkos::fence
parent
27a9ca5c
Branches
release-0.5.1
Tags
v0.5.1
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
main.cpp
+9
-3
9 additions, 3 deletions
main.cpp
script.sh
+1
-1
1 addition, 1 deletion
script.sh
with
10 additions
and
4 deletions
main.cpp
+
9
−
3
View file @
9b73fcf4
...
...
@@ -36,6 +36,7 @@ void scenario_1(double* array, int nblocks, int nlev, int nproma, bool print=tru
d_view
(
jb
,
jk
,
jc
)
=
p
;
}});
Kokkos
::
fence
();
if
(
print
)
printf
(
"Time = %f ms
\n\n
"
,
timer
.
seconds
()
*
1000
);
Kokkos
::
deep_copy
(
view
,
d_view
);
...
...
@@ -62,7 +63,8 @@ void scenario_2(double* array, int nblocks, int nlev, int nproma, bool print=tru
// printf("%f ", d_view(jb, jk, jc));
}});
Kokkos
::
fence
();
if
(
print
)
printf
(
"Time = %f ms
\n\n
"
,
timer
.
seconds
()
*
1000
);
Kokkos
::
deep_copy
(
view
,
d_view
);
...
...
@@ -89,7 +91,8 @@ void scenario_2b(double* array, int nblocks, int nlev, int nproma, bool print=tr
// printf("%f ", d_view(jb, jk, jc));
}});
Kokkos
::
fence
();
if
(
print
)
printf
(
"Time = %f ms
\n\n
"
,
timer
.
seconds
()
*
1000
);
Kokkos
::
deep_copy
(
view
,
d_view
);
...
...
@@ -116,7 +119,8 @@ void scenario_3(double* array, int nblocks, int nlev, int nproma, bool print=tru
// printf("%f ", d_view(jb, jk, jc));
}});
Kokkos
::
fence
();
if
(
print
)
printf
(
"Time = %f ms
\n\n
"
,
timer
.
seconds
()
*
1000
);
Kokkos
::
deep_copy
(
view
,
d_view
);
...
...
@@ -144,6 +148,7 @@ void scenario_4(double* array, int nblocks, int nlev, int nproma, bool print=tru
// printf("%f ", d_view(jb, jk, jc));
}});
Kokkos
::
fence
();
if
(
print
)
printf
(
"Time = %f ms
\n\n
"
,
timer
.
seconds
()
*
1000
);
Kokkos
::
deep_copy
(
view
,
d_view
);
...
...
@@ -172,6 +177,7 @@ void scenario_5(double* array, int nblocks, int nlev, int nproma, bool print=tru
// printf("%f ", d_view(jb, jk, jc));
}});
Kokkos
::
fence
();
if
(
print
)
printf
(
"Time = %f ms
\n\n
"
,
timer
.
seconds
()
*
1000
);
Kokkos
::
deep_copy
(
view
,
d_view
);
...
...
This diff is collapsed.
Click to expand it.
script.sh
+
1
−
1
View file @
9b73fcf4
...
...
@@ -12,7 +12,7 @@ then
cmake
--build
build_gpu
--parallel
ncells
=(
5000000
)
nlev
=(
90
)
nproma
=(
10000 30000 50000 100000 1000000
5000000
)
nproma
=(
5000000
)
else
cmake
-B
build
-S
.
-DMU_ARCH
=
x86_64
-DCMAKE_CXX_FLAGS
=
"-O3"
cmake
--build
build
--parallel
...
...
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