NCAR / micm

A model-independent chemistry module for atmosphere models
https://ncar.github.io/micm/
Apache License 2.0
5 stars 5 forks source link

Add error checks for all the CUDA APIs #554

Closed sjsprecious closed 4 months ago

sjsprecious commented 4 months ago

This PR adds the error checks for all the CUDA APIs used in the MICM CUDA code.

With this change, we find a potential GPU memory issue in the test_cuda_rosenbrock test. After discussing with @mattldawson , we will update the solver builder in the test_cuda_rosenbrock and hopefully the test will pass later.

fix #550

codecov-commenter commented 4 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 92.25%. Comparing base (555be4e) to head (e5a15c9). Report is 6 commits behind head on main.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #554 +/- ## ======================================= Coverage 92.25% 92.25% ======================================= Files 45 45 Lines 3407 3407 ======================================= Hits 3143 3143 Misses 264 264 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.