6 #include "builtin_types.h"
7 #include "cuda_runtime.h"
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"
18 typedef unsigned char uchar
;
20 /*----------------------------------------------------------------------*\
22 \*---------------------------------------------------------------------*/
24 #define HANDLE_ERROR( error ) (cudaHandleError( error, __FILE__, __LINE__ ))
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
32 /*----------------------------------------------------------------------*\
34 \*---------------------------------------------------------------------*/