Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
snippets
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Matteo Cicuttin
snippets
Commits
ca670a25
Commit
ca670a25
authored
5 years ago
by
Matteo Cicuttin
Browse files
Options
Downloads
Patches
Plain Diff
Fixed SILO on Kokkos sources.
parent
88bcc103
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
kokkos-testing/fd_catalog/fd_kokkos.cpp
+9
-2
9 additions, 2 deletions
kokkos-testing/fd_catalog/fd_kokkos.cpp
with
9 additions
and
2 deletions
kokkos-testing/fd_catalog/fd_kokkos.cpp
+
9
−
2
View file @
ca670a25
...
...
@@ -6,7 +6,10 @@
#include
<chrono>
#include
<type_traits>
#ifdef HAVE_SILO
#include
<silo.h>
#endif
#include
<Kokkos_Core.hpp>
#include
<pmmintrin.h>
...
...
@@ -17,6 +20,7 @@
using
namespace
Kokkos
;
using
namespace
std
::
chrono
;
#ifdef HAVE_SILO
template
<
typename
T
>
int
visit_dump
(
const
Kokkos
::
View
<
T
**>&
kv
,
const
std
::
string
&
fn
)
...
...
@@ -73,6 +77,7 @@ visit_dump(const Kokkos::View<T**>& kv, const std::string& fn)
DBClose
(
db
);
return
0
;
}
#endif
/* HAVE_SILO */
template
<
typename
T
>
struct
wave_equation_context_kokkos
...
...
@@ -217,14 +222,16 @@ double solve_kokkos(wave_equation_context_kokkos<T>& wec)
std
::
chrono
::
duration
<
double
,
std
::
milli
>
ms
=
t_end
-
t_begin
;
iter_time
+=
ms
.
count
();
#if 0
#ifdef HAVE_SILO
#ifdef SAVE_TIMESTEPS
if
(
(
ts
%
100
)
==
0
)
{
std
::
stringstream
ss
;
ss
<<
"wave_kokkos_"
<<
ts
<<
".silo"
;
visit_dump
(
wec
.
g_curr
,
ss
.
str
());
}
#endif
#endif
/* SAVE_TIMESTEPS */
#endif
/* HAVE_SILO */
}
double
avg_iter_time
=
iter_time
/
wec
.
maxiter
;
...
...
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