Swarm-NG  1.1
runtime_error.hpp File Reference

Error handling for swarm. More...

#include <stdexcept>
#include <string>
#include <cuda_runtime_api.h>

Go to the source code of this file.

Classes

class  swarm::runtime_error
 Unrecoverable error exception. More...
 
struct  cudaException
 Unrecoverable CUDA error, thrown by cudaErrCheck macro. More...
 

Namespaces

 swarm
 Swarm-NG library.
 

Constant Groups

 swarm
 Swarm-NG library.
 

Macros

#define cudaErrCheck(expr)   cudaException::check(expr, __PRETTY_FUNCTION__, __FILE__, __LINE__)
 cudaErrCheck macro – aborts with message if the enclosed call returns != cudaSuccess
 

Detailed Description

Error handling for swarm.

Generic swarm runtime error is declared as well as CUDA error handling option.

Definition in file runtime_error.hpp.