Closed sjsprecious closed 1 month ago
We have implemented the error checking functions for CUDA (https://github.com/NCAR/micm/blob/main/include/micm/util/cuda_matrix.cuh#L53) and CUBLAS (https://github.com/NCAR/micm/blob/main/include/micm/util/cuda_matrix.cuh#L60) APIs.
However, there are many CUDA APIs in the MICM CUDA code (https://github.com/NCAR/micm/blob/main/src/solver/rosenbrock.cu#L51), where we do not check the returned values and this could lead to a malfunctioning CUDA kernel later.
Describe the solution you'd like Add the existing error check functions to all the CUDA APIs in MICM.
We have implemented the error checking functions for CUDA (https://github.com/NCAR/micm/blob/main/include/micm/util/cuda_matrix.cuh#L53) and CUBLAS (https://github.com/NCAR/micm/blob/main/include/micm/util/cuda_matrix.cuh#L60) APIs.
However, there are many CUDA APIs in the MICM CUDA code (https://github.com/NCAR/micm/blob/main/src/solver/rosenbrock.cu#L51), where we do not check the returned values and this could lead to a malfunctioning CUDA kernel later.
Describe the solution you'd like Add the existing error check functions to all the CUDA APIs in MICM.