MCPcopy Create free account
hub / github.com/mpi4py/mpi4py / set_interface

Method set_interface

test/arrayimpl.py:323–329  ·  view source on GitHub ↗
(self, shape, readonly=False)

Source from the content-addressed store, hash-verified

321class BaseFakeGPUArray:
322 #
323 def set_interface(self, shape, readonly=False):
324 self.__cuda_array_interface__ = {
325 "version": 0,
326 "data": (self.address, readonly),
327 "typestr": typestr(self.typecode, self.itemsize),
328 "shape": shape,
329 }
330
331 def as_raw(self):
332 return self

Callers 2

__init__Method · 0.80
__init__Method · 0.80

Calls 1

typestrFunction · 0.85

Tested by

no test coverage detected