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

Class BaseFakeGPUArray

test/arrayimpl.py:321–332  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

319
320
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
333
334
335if array is not None:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…