ArrayResponse
- class cubie.memory.array_requests.ArrayResponse(arr: dict[str, FakeCUDAArray] = NOTHING, chunks: int = 1, chunk_length: int = 1, chunked_shapes: dict[str, tuple[int, ...]] = NOTHING)[source]
Bases:
objectResult of an array allocation containing buffers and chunking data.
- Parameters:
arr (dict[str, numba.cuda.simulator.cudadrv.devicearray.FakeCUDAArray]) – Dictionary mapping array labels to allocated device arrays.
chunks (int) – Number of chunks the allocation was divided into.
chunk_length (int) – Length of each chunk along the run axis (except possibly last).
chunked_shapes (dict[str, tuple[int, ...]]) – Mapping from array labels to their per-chunk shapes. Empty dict when no chunking occurs.
- arr
Dictionary mapping array labels to allocated device arrays.
- chunks
Number of chunks the allocation was divided into.
- Type:
- chunk_length
Length of each chunk along the run axis.
- Type:
- chunk_length: int
- chunks: int