menu

DeviceMemory

import { DeviceMemory } from "destack:compute";

Compute device memory snapshot.

language/library/src/compute/device.ds:19:28
1export struct DeviceMemory {2    total: usize;3    available: usize;4    unified: boolean;5}

Members

total: usize

Total memory in bytes when the backend exposes it.

available: usize

Available memory in bytes when the backend exposes it.

unified: boolean

Whether host and device memory are physically unified.