]> https://gitweb.dealii.org/ - dealii.git/commit
Use cudaPeekAtLastError() instead of cudaGetLastError() in AssertCuda
authorBruno Turcksin <bruno.turcksin@gmail.com>
Sun, 26 Apr 2020 22:25:49 +0000 (18:25 -0400)
committerBruno Turcksin <bruno.turcksin@gmail.com>
Sun, 26 Apr 2020 22:25:49 +0000 (18:25 -0400)
commit1cdbac71d2c0aa1eb3ecc4cfda766bcd4aa839d0
treec6419575dd3bf0c2ab2b9f5a6ad4bf693d7a19d8
parentfad44b7aa4cb6fcc45b74818a860be9ec4566749
Use cudaPeekAtLastError() instead of cudaGetLastError() in AssertCuda

cudaGetLastError reset the error code to success after being called.
Because the function is called multiple times in AssertCuda, the error
message is wrong.
include/deal.II/lac/affine_constraints.templates.h
include/deal.II/lac/precondition.h
include/deal.II/lac/vector_operations_internal.h
source/lac/cuda_sparse_matrix.cu
source/lac/cuda_vector.cu
tests/cuda/cuda_point.cu
tests/cuda/matrix_free_no_index_initialize.cu

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.