src/device/GPU_CheckError.hh
inline void CheckErrorMsg(cudaError_t const err, char const *const msg, char const *const fun,
                          int const line) {
  if (err) {
    printf("CUDA Error Code[%d]: %s\n%s() Line:%d\n%s\n", err, cudaGetErrorString(err), fun, line,
           msg);
    exit(1);
  }
}
//------------------------------------------------------------------------------------------------//
/*!
 * \brief Helper function to decode cuda integer error into a string message
 * \param[in] err  Cuda error code
 * \param[in] msg  Custom error message that will be printed if non-zero cuda error code is found.
 * \param[in] fun  function name of calling scope
 * \param[in] line line number of calling sceop
 */
\brief Helper function to decode cuda integer error into a string message
\param[in] err  Cuda error code
\param[in] msg  Custom error message that will be printed if non-zero cuda error code is found.
\param[in] fun  function name of calling scope
\param[in] line line number of calling sceop
\ brief Helper function to decode cuda integer error into a string message \ param [ in ] err Cuda error code \ param [ in ] msg Custom error message that will be printed if non - zero cuda error code is found . \ param [ in ] fun function name of calling scope \ param [ in ] line line number of calling sceop
inline void CheckErrorMsg(cudaError_t const err, char const *const msg, char const *const fun,
                          int const line) {
  if (err) {
    printf("CUDA Error Code[%d]: %s\n%s() Line:%d\n%s\n", err, cudaGetErrorString(err), fun, line,
           msg);
    exit(1);
  }
}
inline void CheckErrorMsg ( cudaError_t const err , char const * const msg , char const * const fun , int const line ) { if ( err ) { printf ( " \n \n \n " , err , cudaGetErrorString ( err ) , fun , line , msg ) ; exit ( 1 ) ; } }
\brief Helper function to decode cuda integer error into a string message
 \param[in] err  Cuda error code
 \param[in] msg  Custom error message that will be printed if non-zero cuda error code is found.
\ brief Helper function to decode cuda integer error into a string message \ param [ in ] err Cuda error code \ param [ in ] msg Custom error message that will be printed if non - zero cuda error code is found .