| # define THC_EXTERNC extern "C" |
| # define THC_EXTERNC extern |
| # define THC_API THC_EXTERNC __declspec(dllexport) |
| # define THC_API THC_EXTERNC __declspec(dllimport) |
| # define THC_API THC_EXTERNC |
| THC_API void THCudaInit(void); |
| THC_API void THCudaShutdown(void); |
| #define THCudaCheck(err) __THCudaCheck(err, __FILE__, __LINE__) |
| #define THCublasCheck() __THCublasCheck( __FILE__, __LINE__) |
| THC_API void __THCudaCheck(cudaError_t err, const char *file, const int line); |
| THC_API void __THCublasCheck(const char *file, const int line); |
| THC_API void THCudaGetGridSize(int *nBlockPerColumn_, int *nBlockPerRow_, int *nThreadPerBlock_, long size); |