Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
SC19 Tutorial on OpenPOWER
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
Container registry
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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
nval
SC19 Tutorial on OpenPOWER
Commits
b4d8f6a1
Commit
b4d8f6a1
authored
5 years ago
by
mathias wagner
Browse files
Options
Downloads
Patches
Plain Diff
remove lefttover TODOs
parent
22b0f316
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
4-GPU/HandsOn/.master/C/task6/poisson2d.solution.c
+1
-4
1 addition, 4 deletions
4-GPU/HandsOn/.master/C/task6/poisson2d.solution.c
4-GPU/HandsOn/Solution/C/task6/poisson2d.solution.c
+1
-4
1 addition, 4 deletions
4-GPU/HandsOn/Solution/C/task6/poisson2d.solution.c
with
2 additions
and
8 deletions
4-GPU/HandsOn/.master/C/task6/poisson2d.solution.c
+
1
−
4
View file @
b4d8f6a1
...
...
@@ -133,8 +133,7 @@ int main(int argc, char **argv) {
MPI_Barrier
(
MPI_COMM_WORLD
);
if
(
rank
==
0
)
printf
(
"Parallel execution.
\n
"
);
//TODO: measuring the MPI time with asynchronous compute is not well defined. Remove it here and belows.
double
mpi_time
=
0
.
0
;
// double mpi_time = 0.0;
double
start
=
MPI_Wtime
();
int
iter
=
0
;
real
error
=
1
.
0
;
...
...
@@ -159,8 +158,6 @@ int main(int argc, char **argv) {
while
(
error
>
tol
&&
iter
<
iter_max
)
{
error
=
0
.
0
;
//TODO: Check which parts in the while loop can be executed asynchronously by adding the async keyword
//You might also need to use wait
#pragma acc parallel loop present(A, Anew, rhs) async
for
(
int
iy
=
iy_start
;
iy
<
iy_end
;
iy
++
)
{
for
(
int
ix
=
ix_start
;
ix
<
ix_end
;
ix
++
)
{
...
...
This diff is collapsed.
Click to expand it.
4-GPU/HandsOn/Solution/C/task6/poisson2d.solution.c
+
1
−
4
View file @
b4d8f6a1
...
...
@@ -133,8 +133,7 @@ int main(int argc, char **argv) {
MPI_Barrier
(
MPI_COMM_WORLD
);
if
(
rank
==
0
)
printf
(
"Parallel execution.
\n
"
);
//TODO: measuring the MPI time with asynchronous compute is not well defined. Remove it here and belows.
double
mpi_time
=
0
.
0
;
// double mpi_time = 0.0;
double
start
=
MPI_Wtime
();
int
iter
=
0
;
real
error
=
1
.
0
;
...
...
@@ -159,8 +158,6 @@ int main(int argc, char **argv) {
while
(
error
>
tol
&&
iter
<
iter_max
)
{
error
=
0
.
0
;
//TODO: Check which parts in the while loop can be executed asynchronously by adding the async keyword
//You might also need to use wait
#pragma acc parallel loop present(A, Anew, rhs) async
for
(
int
iy
=
iy_start
;
iy
<
iy_end
;
iy
++
)
{
for
(
int
ix
=
ix_start
;
ix
<
ix_end
;
ix
++
)
{
...
...
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