cudaGetLastError reset the error code to success after being called.
Because the function is called multiple times in AssertCuda, the error
message is wrong.
constrained_local_dofs_device, n_constraints, vec.get_values());
# ifdef DEBUG
// Check that the kernel was launched correctly
- AssertCuda(cudaGetLastError());
+ AssertCuda(cudaPeekAtLastError());
// Check that there was no problem during the execution of the kernel
AssertCuda(cudaDeviceSynchronize());
# endif
# ifdef DEBUG
// Check that the kernel was launched correctly
- AssertCuda(cudaGetLastError());
+ AssertCuda(cudaPeekAtLastError());
// Check that there was no problem during the execution of the kernel
AssertCuda(cudaDeviceSynchronize());
# endif
# ifdef DEBUG
// Check that the kernel was launched correctly
- AssertCuda(cudaGetLastError());
+ AssertCuda(cudaPeekAtLastError());
// Check that there was no problem during the execution of the kernel
AssertCuda(cudaDeviceSynchronize());
# endif
# ifdef DEBUG
// Check that the kernel was launched correctly
- AssertCuda(cudaGetLastError());
+ AssertCuda(cudaPeekAtLastError());
// Check that there was no problem during the execution of the kernel
AssertCuda(cudaDeviceSynchronize());
# endif
# ifdef DEBUG
// Check that the kernel was launched correctly
- AssertCuda(cudaGetLastError());
+ AssertCuda(cudaPeekAtLastError());
// Check that there was no problem during the execution of the kernel
AssertCuda(cudaDeviceSynchronize());
# endif
# ifdef DEBUG
// Check that the kernel was launched correctly
- AssertCuda(cudaGetLastError());
+ AssertCuda(cudaPeekAtLastError());
// Check that there was no problem during the execution of the kernel
AssertCuda(cudaDeviceSynchronize());
# endif
# ifdef DEBUG
// Check that the kernel was launched correctly
- AssertCuda(cudaGetLastError());
+ AssertCuda(cudaPeekAtLastError());
// Check that there was no problem during the execution of the kernel
AssertCuda(cudaDeviceSynchronize());
# endif
# ifdef DEBUG
// Check that the kernel was launched correctly
- AssertCuda(cudaGetLastError());
+ AssertCuda(cudaPeekAtLastError());
// Check that there was no problem during the execution of the kernel
AssertCuda(cudaDeviceSynchronize());
# endif
# ifdef DEBUG
// Check that the kernel was launched correctly
- AssertCuda(cudaGetLastError());
+ AssertCuda(cudaPeekAtLastError());
// Check that there was no problem during the execution of the kernel
AssertCuda(cudaDeviceSynchronize());
# endif
# ifdef DEBUG
// Check that the kernel was launched correctly
- AssertCuda(cudaGetLastError());
+ AssertCuda(cudaPeekAtLastError());
// Check that there was no problem during the execution of the kernel
AssertCuda(cudaDeviceSynchronize());
# endif
# ifdef DEBUG
// Check that the kernel was launched correctly
- AssertCuda(cudaGetLastError());
+ AssertCuda(cudaPeekAtLastError());
// Check that there was no problem during the execution of the kernel
AssertCuda(cudaDeviceSynchronize());
# endif
# ifdef DEBUG
// Check that the kernel was launched correctly
- AssertCuda(cudaGetLastError());
+ AssertCuda(cudaPeekAtLastError());
// Check that there was no problem during the execution of the kernel
AssertCuda(cudaDeviceSynchronize());
# endif
# ifdef DEBUG
// Check that the kernel was launched correctly
- AssertCuda(cudaGetLastError());
+ AssertCuda(cudaPeekAtLastError());
// Check that there was no problem during the execution of the kernel
AssertCuda(cudaDeviceSynchronize());
# endif
# ifdef DEBUG
// Check that the kernel was launched correctly
- AssertCuda(cudaGetLastError());
+ AssertCuda(cudaPeekAtLastError());
// Check that there was no problem during the execution of the kernel
AssertCuda(cudaDeviceSynchronize());
# endif
# ifdef DEBUG
// Check that the kernel was launched correctly
- AssertCuda(cudaGetLastError());
+ AssertCuda(cudaPeekAtLastError());
// Check that there was no problem during the execution of the kernel
AssertCuda(cudaDeviceSynchronize());
# endif
# ifdef DEBUG
// Check that the kernel was launched correctly
- AssertCuda(cudaGetLastError());
+ AssertCuda(cudaPeekAtLastError());
// Check that there was no problem during the execution of the kernel
AssertCuda(cudaDeviceSynchronize());
# endif
# ifdef DEBUG
// Check that the kernel was launched correctly
- AssertCuda(cudaGetLastError());
+ AssertCuda(cudaPeekAtLastError());
// Check that there was no problem during the execution of the kernel
AssertCuda(cudaDeviceSynchronize());
# endif
# ifdef DEBUG
// Check that the kernel was launched correctly
- AssertCuda(cudaGetLastError());
+ AssertCuda(cudaPeekAtLastError());
// Check that there was no problem during the execution of the kernel
AssertCuda(cudaDeviceSynchronize());
# endif
# ifdef DEBUG
// Check that the kernel was launched correctly
- AssertCuda(cudaGetLastError());
+ AssertCuda(cudaPeekAtLastError());
// Check that there was no problem during the execution of the kernel
AssertCuda(cudaDeviceSynchronize());
# endif
# ifdef DEBUG
// Check that the kernel was launched correctly
- AssertCuda(cudaGetLastError());
+ AssertCuda(cudaPeekAtLastError());
// Check that there was no problem during the execution of the kernel
AssertCuda(cudaDeviceSynchronize());
# endif
# ifdef DEBUG
// Check that the kernel was launched correctly
- AssertCuda(cudaGetLastError());
+ AssertCuda(cudaPeekAtLastError());
// Check that there was no problem during the execution of the kernel
AssertCuda(cudaDeviceSynchronize());
# endif
# ifdef DEBUG
// Check that the kernel was launched correctly
- AssertCuda(cudaGetLastError());
+ AssertCuda(cudaPeekAtLastError());
// Check that there was no problem during the execution of the kernel
AssertCuda(cudaDeviceSynchronize());
# endif
# ifdef DEBUG
// Check that the kernel was launched correctly
- AssertCuda(cudaGetLastError());
+ AssertCuda(cudaPeekAtLastError());
// Check that there was no problem during the execution of the kernel
AssertCuda(cudaDeviceSynchronize());
# endif
# ifdef DEBUG
// Check that the kernel was launched correctly
- AssertCuda(cudaGetLastError());
+ AssertCuda(cudaPeekAtLastError());
// Check that there was no problem during the execution of the kernel
AssertCuda(cudaDeviceSynchronize());
# endif
# ifdef DEBUG
// Check that the kernel was launched correctly
- AssertCuda(cudaGetLastError());
+ AssertCuda(cudaPeekAtLastError());
// Check that there was no problem during the execution of the kernel
AssertCuda(cudaDeviceSynchronize());
# endif
# ifdef DEBUG
// Check that the kernel was launched correctly
- AssertCuda(cudaGetLastError());
+ AssertCuda(cudaPeekAtLastError());
// Check that there was no problem during the execution of the kernel
AssertCuda(cudaDeviceSynchronize());
# endif
# ifdef DEBUG
// Check that the kernel was launched correctly
- AssertCuda(cudaGetLastError());
+ AssertCuda(cudaPeekAtLastError());
// Check that there was no problem during the execution of the kernel
AssertCuda(cudaDeviceSynchronize());
# endif
# ifdef DEBUG
// Check that the kernel was launched correctly
- AssertCuda(cudaGetLastError());
+ AssertCuda(cudaPeekAtLastError());
// Check that there was no problem during the execution of the kernel
AssertCuda(cudaDeviceSynchronize());
# endif
# ifdef DEBUG
// Check that the kernel was launched correctly
- AssertCuda(cudaGetLastError());
+ AssertCuda(cudaPeekAtLastError());
// Check that there was no problem during the execution of the kernel
AssertCuda(cudaDeviceSynchronize());
# endif
# ifdef DEBUG
// Check that the kernel was launched correctly
- AssertCuda(cudaGetLastError());
+ AssertCuda(cudaPeekAtLastError());
// Check that there was no problem during the execution of the kernel
AssertCuda(cudaDeviceSynchronize());
# endif
# ifdef DEBUG
// Check that the kernel was launched correctly
- AssertCuda(cudaGetLastError());
+ AssertCuda(cudaPeekAtLastError());
// Check that there was no problem during the execution of the kernel
AssertCuda(cudaDeviceSynchronize());
# endif
// Miscellaneous
miscellaneous_kernel<dim, Number><<<1, 1>>>(check);
// Check that the kernel was launched correctly
- AssertCuda(cudaGetLastError());
+ AssertCuda(cudaPeekAtLastError());
// Check that there was no problem during the execution of the kernel
AssertCuda(cudaDeviceSynchronize());
data.cell_loop(*this, src_dummy, dst_dummy);
// Check that the kernel was launched correctly
- AssertCuda(cudaGetLastError());
+ AssertCuda(cudaPeekAtLastError());
// Check that there was no problem during the execution of the kernel
AssertCuda(cudaDeviceSynchronize());