Implémentation du raytracing pour Global Memory/Shared Memory/Constant Memory
[GPU.git] / WCudaMSE / BilatTools_Cuda / src / core / cudatools / header / host / cudaTools.h
1 #ifndef CUDA_TOOLS_H_
2 #define CUDA_TOOLS_H_
3
4
5 //#include "cuda.h"
6 #include "builtin_types.h"
7 #include "cuda_runtime.h"
8 #include "curand.h"
9
10 // cublas
11 #include "cublas_v2.h" // Pour specifier la version qu'on veut! (definition CUBLASAPI)
12 //#include "cublas.h" // Pour specifier la version qu'on veut!(definition CUBLASAPI)
13 #include "cublas_api.h" // Apr�s include "cublas_v2.h" ou "cublas.h"
14
15 #ifndef uchar
16 typedef unsigned char uchar;
17 #endif
18
19 /*----------------------------------------------------------------------*\
20 |* Declaration *|
21 \*---------------------------------------------------------------------*/
22
23 #define HANDLE_ERROR( error ) (cudaHandleError( error, __FILE__, __LINE__ ))
24
25 void cudaHandleError(cudaError_t error, const char *file, int line); //cuda
26 void cudaHandleError(curandStatus_t statut, const char *file, int line); // curand
27 void cudaHandleError(cublasStatus_t cublasStatus,const char *file, int line); // cublas
28
29 #endif
30
31 /*----------------------------------------------------------------------*\
32 |* End *|
33 \*---------------------------------------------------------------------*/
34