Skip to content
Snippets Groups Projects
Commit b4d8f6a1 authored by mathias wagner's avatar mathias wagner
Browse files

remove lefttover TODOs

parent 22b0f316
Branches
No related tags found
No related merge requests found
......@@ -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++) {
......
......@@ -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++) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment