提交 cc5e195d authored 作者: Frederic's avatar Frederic

Fix compilation of the GPU back-end on windows.

close gh-1546
上级 2fe4b0b8
...@@ -528,7 +528,7 @@ DllExport int CudaNdarray_inplace_elemwise(PyObject* py_self, PyObject * py_othe ...@@ -528,7 +528,7 @@ DllExport int CudaNdarray_inplace_elemwise(PyObject* py_self, PyObject * py_othe
DllExport int CudaNdarray_prep_output(CudaNdarray ** arr, int nd, DllExport int CudaNdarray_prep_output(CudaNdarray ** arr, int nd,
const int * dims); const int * dims);
DllExport const char* cublasGetErrorString(cublasStatus err){ DllExport inline const char* ALWAYS_INLINE cublasGetErrorString(cublasStatus err){
if(CUBLAS_STATUS_SUCCESS == err) if(CUBLAS_STATUS_SUCCESS == err)
return "success"; return "success";
else if(CUBLAS_STATUS_NOT_INITIALIZED == err) else if(CUBLAS_STATUS_NOT_INITIALIZED == err)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论