Skip to content

Commit

Permalink
cuda: fix error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
janden committed Oct 17, 2024
1 parent c472458 commit f7af341
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion include/cufinufft/impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,8 @@ int cufinufft_makeplan_impl(int type, int dim, int *nmodes, int iflag, int ntran
}
}

if ((ier = cudaGetLastError())) {
if (cudaGetLastError() != cudaSuccess) {
ier = FINUFFT_ERR_CUDA_FAILURE;
goto finalize;
}

Expand Down

0 comments on commit f7af341

Please sign in to comment.