DPsim
Loading...
Searching...
No Matches
CudaUtility.h File Reference
#include <iostream>
#include <utility>
#include <cuda_runtime.h>
#include <cusparse_v2.h>
Include dependency graph for CudaUtility.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  DPsim::cuda::Vector< T >
 
class  DPsim::cuda::Vector< T >::iterator
 
struct  DPsim::cuda::CudaMatrix< ValueType, IndexType >
 

Namespaces

namespace  DPsim
 
namespace  DPsim::cuda
 

Macros

#define CUDA_ENABLE_ERROR_CHECK
 
#define CUDA_CHECK_ERROR(CUDA_CALL)
 

Functions

template<typename T>
void DPsim::cuda::copybackAndPrint (std::ostream &stream, const char *msg, T *ptr, int n)
 

Macro Definition Documentation

◆ CUDA_CHECK_ERROR

#define CUDA_CHECK_ERROR ( CUDA_CALL)
Value:
{ \
cudaError_t code = (cudaError_t)CUDA_CALL; \
if (code != cudaSuccess) { \
printf("CUDA Error: %s\n", cudaGetErrorString(code)); \
} \
}

Definition at line 19 of file CudaUtility.h.

◆ CUDA_ENABLE_ERROR_CHECK

#define CUDA_ENABLE_ERROR_CHECK

Definition at line 16 of file CudaUtility.h.