Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
hyteg
hyteg
Commits
e82bf980
Commit
e82bf980
authored
Sep 21, 2021
by
Marcel Koch
Browse files
refine timings
parent
37f633b8
Pipeline
#34326
failed with stages
in 23 minutes and 37 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/hyteg/ginkgo/GinkgoCGSolver.hpp
View file @
e82bf980
...
...
@@ -504,7 +504,9 @@ class GinkgoCGSolver : public Solver< OperatorType >
{
x
.
getStorage
()
->
getTimingTree
()
->
start
(
"Ginkgo CG Solver Set-Up"
);
matrix_
=
csr
::
create
(
solver_exec_
);
x
.
getStorage
()
->
getTimingTree
()
->
start
(
"Ginkgo CG matrix-gather"
);
host_matrix_
->
convert_to
(
gko
::
lend
(
matrix_
)
);
x
.
getStorage
()
->
getTimingTree
()
->
stop
(
"Ginkgo CG matrix-gather"
);
if
(
matrix_
->
get_size
()[
0
]
>
0
&&
matrix_
->
get_size
()[
1
]
>
0
)
{
...
...
@@ -532,8 +534,10 @@ class GinkgoCGSolver : public Solver< OperatorType >
}
auto
global_rhs
=
dense
::
create
(
host_exec_
);
auto
global_x0
=
dense
::
create
(
host_exec_
);
x
.
getStorage
()
->
getTimingTree
()
->
start
(
"Ginkgo CG Solver gather"
);
rhs
->
convert_to
(
gko
::
lend
(
global_rhs
)
);
x0
->
convert_to
(
gko
::
lend
(
global_x0
)
);
x
.
getStorage
()
->
getTimingTree
()
->
stop
(
"Ginkgo CG Solver gather"
);
x
.
getStorage
()
->
getTimingTree
()
->
start
(
"Ginkgo CG Solver Apply"
);
if
(
matrix_
->
get_size
()[
0
]
>
0
&&
matrix_
->
get_size
()[
1
]
>
0
)
...
...
@@ -542,11 +546,13 @@ class GinkgoCGSolver : public Solver< OperatorType >
}
x
.
getStorage
()
->
getTimingTree
()
->
stop
(
"Ginkgo CG Solver Apply"
);
x
.
getStorage
()
->
getTimingTree
()
->
start
(
"Ginkgo CG Solver scatter"
);
if
(
doAssemble
)
{
gather_idxs_
=
compute_gather_idxs
(
part_
);
}
scatter_global_vector
(
global_x0
.
get
(),
x0
,
gather_idxs_
,
comm_
);
x
.
getStorage
()
->
getTimingTree
()
->
stop
(
"Ginkgo CG Solver scatter"
);
dir_handler
->
update_solution
(
x0
);
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment