8c0834d6947c4f648794578b708f3cbd3f597da6
[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
16
17
18 typedef unsigned char uchar;
19
20 /*----------------------------------------------------------------------*\
21 |* Declaration *|
22 \*---------------------------------------------------------------------*/
23
24 #define HANDLE_ERROR( error ) (cudaHandleError( error, __FILE__, __LINE__ ))
25
26 void cudaHandleError(cudaError_t error, const char *file, int line); //cuda
27 void cudaHandleError(curandStatus_t statut, const char *file, int line); // curand
28 void cudaHandleError(cublasStatus_t cublasStatus,const char *file, int line); // cublas
29
30 #endif
31
32 /*----------------------------------------------------------------------*\
33 |* End *|
34 \*---------------------------------------------------------------------*/
35