Skip to content

Commit

Permalink
reset
Browse files Browse the repository at this point in the history
  • Loading branch information
mehmetyusufoglu committed Oct 23, 2024
1 parent 3e95e35 commit 6f932c2
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions example/heatEquation2D/src/heatEquation2D.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -169,15 +169,15 @@ auto example(TAccTag const&) -> int
dy,
dt);

#ifdef PNGWRITER_ENABLED
if((step - 1) % 100 == 0)
{
alpaka::wait(computeQueue);
alpaka::memcpy(dumpQueue, uBufHost, uCurrBufAcc);
alpaka::wait(dumpQueue);
writeImage(step - 1, uBufHost);
}
#endif
// #ifdef PNGWRITER_ENABLED
// if((step - 1) % 100 == 0)
// {
// alpaka::wait(computeQueue);
// alpaka::memcpy(dumpQueue, uBufHost, uCurrBufAcc);
// alpaka::wait(dumpQueue);
// writeImage(step - 1, uBufHost);
// }
// #endif

// So we just swap next and curr (shallow copy)
std::swap(uNextBufAcc, uCurrBufAcc);
Expand Down

0 comments on commit 6f932c2

Please sign in to comment.