提交 adcc0e75 authored 作者: Frederic Bastien's avatar Frederic Bastien

Fix string formating error that was just inserted.

上级 b8ce8ec1
...@@ -49,7 +49,7 @@ void * device_malloc(size_t size) ...@@ -49,7 +49,7 @@ void * device_malloc(size_t size)
#else #else
fprintf(stderr, "Error allocating %li bytes of device memory (%s).\n", (long)size, cudaGetErrorString(err)); fprintf(stderr, "Error allocating %li bytes of device memory (%s).\n", (long)size, cudaGetErrorString(err));
#endif #endif
PyErr_Format(PyExc_MemoryError, "Error allocating %%li bytes of device memory (%%s).", (long)size, cudaGetErrorString(err)); PyErr_Format(PyExc_MemoryError, "Error allocating %li bytes of device memory (%s).", (long)size, cudaGetErrorString(err));
return NULL; return NULL;
} }
_outstanding_mallocs[0] += (rval != NULL); _outstanding_mallocs[0] += (rval != NULL);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论