提交 98afabeb authored 作者: Frederic's avatar Frederic

Remove less informative error.

The python error is already set by device_malloc and it contain more information.
上级 612907d2
......@@ -386,8 +386,6 @@ static int CudaNdarray_alloc_contiguous(CudaNdarray *self, const int nd, const i
CudaNdarray_set_nd(self, -1);
self->data_allocated = 0;
self->devdata = 0;
PyErr_SetString(PyExc_RuntimeError,
"Could not allocate memory on device");
return -1;
}
if (0)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论