提交 2ffd8b03 authored 作者: Frederic's avatar Frederic

Add CudaNdarray.strides as CudaNdarray._strides for compatibility with NumPy.

The setter isn't implemented and will raise an error.
上级 49d1e2f8
......@@ -2551,6 +2551,11 @@ static PyGetSetDef CudaNdarray_getset[] = {
(setter)CudaNdarray_set_strides,
"data pointer strides (in elements)",
NULL},
{"strides",
(getter)CudaNdarray_get_strides,
(setter)CudaNdarray_set_strides,
"data pointer strides (in elements)",
NULL},
//gpudata is needed to allow calling pycuda fct with CudaNdarray input.
{"gpudata",
(getter)CudaNdarray_get_dev_data,
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论