Skip to content

Commit

Permalink
fixed rocALUTION missing copy from device to cpu for MPI
Browse files Browse the repository at this point in the history
  • Loading branch information
tzwinger committed Dec 16, 2024
1 parent b7938ac commit 5d621cc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions fem/src/rocalution.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -459,8 +459,9 @@ extern "C" void ROCParallelSolve( int *gn, int *n, int *rows, int *cols, double

ls->Solve(rhs, &x);

// x.CopyToData(x_out);

// move solution back from device to host
x.MoveToHost();

for(i=0; i<*n; i++ ) x_out[i]=x[i];

ls->Clear();
Expand Down

0 comments on commit 5d621cc

Please sign in to comment.