src/device/GPU_CheckError.hh
inline void CheckError(cudaError_t const err, char const *const fun, const int line) {
  if (err) {
    printf("CUDA Error Code[%d]: %s\n%s() Line:%d\n", err, cudaGetErrorString(err), fun, line);
    exit(1);
  }
}
//------------------------------------------------------------------------------------------------//
/*!
 * \brief Helper function to decode cuda integer error into a string message
 * \param[in] err  Cuda error code
 * \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] 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 ] fun function name of calling scope \ param [ in ] line line number of calling sceop
inline void CheckError(cudaError_t const err, char const *const fun, const int line) {
  if (err) {
    printf("CUDA Error Code[%d]: %s\n%s() Line:%d\n", err, cudaGetErrorString(err), fun, line);
    exit(1);
  }
}
inline void CheckError ( cudaError_t const err , char const * const fun , const int line ) { if ( err ) { printf ( " \n \n " , err , cudaGetErrorString ( err ) , fun , line ) ; exit ( 1 ) ; } }
\brief Helper function to decode cuda integer error into a string message
 \param[in] err  Cuda error code
 \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 ] fun function name of calling scope \ param [ in ] line line number of calling sceop