We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5882289 commit 1732459Copy full SHA for 1732459
2 files changed
pygpu/gpuarray.pxd
@@ -103,6 +103,7 @@ cdef extern from "gpuarray/buffer.h":
103
int GA_CTX_PROP_MAXGSIZE0
104
int GA_CTX_PROP_MAXGSIZE1
105
int GA_CTX_PROP_MAXGSIZE2
106
+ int GA_CTX_PROP_LARGEST_MEMBLOCK
107
108
int GA_BUFFER_PROP_SIZE
109
pygpu/gpuarray.pyx
@@ -1146,6 +1146,13 @@ cdef class GpuContext:
1146
ctx_property(self, GA_CTX_PROP_MAXGSIZE2, &res)
1147
return res
1148
1149
+ property largest_memblock:
1150
+ "Size of the largest memory block you can allocate"
1151
+ def __get__(self):
1152
+ cdef size_t res
1153
+ ctx_property(self, GA_CTX_PROP_LARGEST_MEMBLOCK, &res)
1154
+ return res
1155
+
1156
1157
cdef class flags(object):
1158
cdef int fl
0 commit comments