Skip to content

Commit f13cb65

Browse files
committed
Add some documentation and remove unused declaration.
1 parent 976ce48 commit f13cb65

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

pygpu/gpuarray.pyx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -789,7 +789,7 @@ def from_gpudata(size_t data, offset, dtype, shape, GpuContext context=None,
789789
:type shape: iterable of ints
790790
:param context: context of the gpudata
791791
:type context: GpuContext
792-
:param strides: strides for the results
792+
:param strides: strides for the results (C contiguous if not specified)
793793
:type strides: iterable of ints
794794
:param writable: is the data writable?
795795
:type writeable: bool
@@ -1433,6 +1433,11 @@ cuda_open_ipc_handle = <gpudata *(*)(gpucontext *, GpuArrayIpcMemHandle *, size_
14331433
def open_ipc_handle(GpuContext c, bytes hpy, size_t l):
14341434
"""
14351435
Open an IPC handle to get a new GpuArray from it.
1436+
1437+
:param c: context
1438+
:param hpy: binary handle data received
1439+
:param l: size of the referred memory block
1440+
14361441
"""
14371442
cdef char *b
14381443
cdef GpuArrayIpcMemHandle h

src/private_cuda.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,6 @@ struct _gpudata {
123123

124124
GPUARRAY_LOCAL gpudata *cuda_make_buf(cuda_context *c, CUdeviceptr p,
125125
size_t sz);
126-
GPUARRAY_LOCAL CUdeviceptr cuda_get_ptr(gpudata *g);
127126
GPUARRAY_LOCAL size_t cuda_get_sz(gpudata *g);
128127
GPUARRAY_LOCAL int cuda_wait(gpudata *, int);
129128
GPUARRAY_LOCAL int cuda_record(gpudata *, int);

0 commit comments

Comments
 (0)