packages/CudaUtils/cuda_utils/CudaDBC.cc
//---------------------------------------------------------------------------//
/*!
 * \brief Throw a profugus::assertion for CudaCall/CudaInsist macros.
 *
 * This function is not compiled if the CUDA runtime is not installed.
 */
\brief Throw a profugus::assertion for CudaCall/CudaInsist macros.
This function is not compiled if the CUDA runtime is not installed.
\ brief Throw a profugus :: assertion for CudaCall / CudaInsist macros . This function is not compiled if the CUDA runtime is not installed .
void toss_cuda_cookies(
        const char* message,
        const char* detail,
        const char* file,
        int         line)
{
    std::ostringstream out;
    out << "CUDA runtime failure: " << message
        << " {" << detail << "}";
#if PROFUGUS_DBC > 0
    out << "\n ^^^ at " << file << ":" << line << "\n";
#else
    (void)sizeof(file);
    (void)sizeof(line);
#endif
    throw ::profugus::assertion(out.str());
}
void toss_cuda_cookies ( const char * message , const char * detail , const char * file , int line ) { std :: ostringstream out ; out << " " << message << " " << detail << " " ; #if PROFUGUS_DBC > 0 out << " \n " << file << " " << line << " \n " ; #else ( void ) sizeof ( file ) ; ( void ) sizeof ( line ) ; #endif throw :: profugus :: assertion ( out . str ( ) ) ; }
\brief Throw a profugus::assertion for CudaCall/CudaInsist macros.
\ brief Throw a profugus :: assertion for CudaCall / CudaInsist macros .
// Debug mode is off, so don't trouble the user with the particulars