提交 0a39f9e7 authored 作者: Frederic's avatar Frederic

Fix condition following code review.

上级 3eeff11b
...@@ -239,7 +239,7 @@ int device_free(void *ptr) ...@@ -239,7 +239,7 @@ int device_free(void *ptr)
ptr, ptr,
cudaGetErrorString(err), free, total); cudaGetErrorString(err), free, total);
#endif #endif
if (NULL == PyErr_Occurred()){ if (NULL != PyErr_Occurred()){
fprintf(stderr, fprintf(stderr,
"device_free: cudaFree() returned an error, but there is already an" "device_free: cudaFree() returned an error, but there is already an"
" Python error set. This happen during the clean up when there is a" " Python error set. This happen during the clean up when there is a"
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论