Skip to content

Commit

Permalink
Missed workaround for CUDA (cp2k#422).
Browse files Browse the repository at this point in the history
  • Loading branch information
hfp committed Jan 21, 2021
1 parent e6693bd commit 11ae7d5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/acc/acc_bench_trans.c
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,9 @@ int main(int argc, char* argv[])
#if defined(_DEBUG)
fprintf(stderr, "Error: no device found!\n");
#endif
#if !defined(__CUDA)
CHECK(libsmm_acc_finalize(), NULL);
#endif
CHECK(acc_finalize(), NULL);
return result;
}
Expand Down Expand Up @@ -208,7 +210,9 @@ int main(int argc, char* argv[])
CHECK(acc_dev_mem_deallocate(stack_dev), NULL);
CHECK(acc_dev_mem_deallocate(mat_dev), NULL);
CHECK(acc_stream_destroy(stream), NULL);
#if !defined(__CUDA)
CHECK(libsmm_acc_finalize(), NULL);
#endif
CHECK(acc_finalize(), NULL);
if (EXIT_SUCCESS != result) {
fprintf(stderr, "FAILED\n");
Expand Down

0 comments on commit 11ae7d5

Please sign in to comment.