Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
hyteg
hyteg
Commits
f44b7f2c
Commit
f44b7f2c
authored
Jan 13, 2022
by
Marcel Koch
Browse files
update timings
parent
fb0af1df
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/hyteg/ginkgo/GinkgoBlockSolver.hpp
View file @
f44b7f2c
...
...
@@ -204,12 +204,12 @@ class GinkgoBlockSolver : public Solver< OperatorType >
monolithic_matrix_
=
gko
::
share
(
csr
::
create
(
solver_exec_
)
);
gko
::
as
<
mtx
>
(
host_monolithic_matrix_
)
->
convert_to
(
monolithic_matrix_
.
get
()
);
x
.
getStorage
()
->
getTimingTree
()
->
stop
(
"Ginkgo CG Solver Gather matrix"
);
x
.
getStorage
()
->
getTimingTree
()
->
start
(
"Ginkgo CG Solver Permute matrix"
);
if
(
comm_
->
size
()
>
1
&&
monolithic_matrix_
->
get_size
()
)
{
x
.
getStorage
()
->
getTimingTree
()
->
start
(
"Ginkgo CG Solver Permute matrix"
);
monolithic_matrix_
=
gko
::
as
<
csr
>
(
monolithic_matrix_
->
permute
(
&
perm
)
);
x
.
getStorage
()
->
getTimingTree
()
->
stop
(
"Ginkgo CG Solver Permute matrix"
);
}
x
.
getStorage
()
->
getTimingTree
()
->
stop
(
"Ginkgo CG Solver Permute matrix"
);
{
x
.
getStorage
()
->
getTimingTree
()
->
start
(
"Ginkgo CG Solver Gather preconditioner"
);
...
...
@@ -354,9 +354,9 @@ class GinkgoBlockSolver : public Solver< OperatorType >
x0
->
convert_to
(
gko
::
lend
(
global_x0
)
);
x
.
getStorage
()
->
getTimingTree
()
->
stop
(
"Ginkgo CG Solver Gather vectors"
);
x
.
getStorage
()
->
getTimingTree
()
->
start
(
"Ginkgo CG Solver Apply"
);
if
(
monolithic_matrix_
->
get_size
()
)
{
x
.
getStorage
()
->
getTimingTree
()
->
start
(
"Ginkgo CG Solver Apply"
);
if
(
comm_
->
size
()
>
1
)
{
auto
permuted_global_rhs
=
gko
::
as
<
dense
>
(
global_rhs
->
row_permute
(
&
perm
)
);
...
...
@@ -368,9 +368,9 @@ class GinkgoBlockSolver : public Solver< OperatorType >
{
solver_
->
apply
(
gko
::
lend
(
global_rhs
),
gko
::
lend
(
global_x0
)
);
}
x
.
getStorage
()
->
getTimingTree
()
->
stop
(
"Ginkgo CG Solver Apply"
);
}
WALBERLA_MPI_BARRIER
();
x
.
getStorage
()
->
getTimingTree
()
->
stop
(
"Ginkgo CG Solver Apply"
);
x
.
getStorage
()
->
getTimingTree
()
->
start
(
"Ginkgo CG Solver Scatter vectors"
);
gather_idxs_
=
compute_gather_idxs
(
part_
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment