Skip to main content

Module memory

Module memory 

Source
Expand description

SoftGPU software memory: one host allocator behind regions and AMD pools.

Provenance: softgpu-software. Allocations are process CPU memory, not R9700 VRAM. Sizes are SoftGPU defaults, not invented hardware limits.

§Ownership invariants

  • Every live SoftGPU allocation is keyed by base pointer in live.
  • Allocation is Send because SoftGPU never shares a mutable allocation across threads without going through the process-global runtime mutex; the raw pointer is exclusive to SoftGPU until free.
  • Free of an unknown pointer fails closed (no silent host free).

Structs§

AllocationMeta
SoftGPU permission / lifetime metadata for a tracked allocation.
MemorySpace
SoftGpuAllocator
Process-heap SoftGPU allocator with tracked pointers.

Enums§

AllocError
MemoryViewKind
PoolInfoValue
RegionInfoValue

Constants§

AMD_POOL_FLAGS_COARSE
COARSE_GRAINED.
AMD_POOL_FLAGS_FINE_KERNARG
KERNARG_INIT | FINE_GRAINED.
AMD_POOL_LOCATION_CPU
AMD_POOL_LOCATION_GPU
AMD_SEGMENT_GLOBAL
AMD HSA_AMD_SEGMENT_GLOBAL.
REGION_FLAGS_COARSE
HSA_REGION_GLOBAL_FLAG_COARSE_GRAINED.
REGION_FLAGS_FINE_KERNARG
HSA_REGION_GLOBAL_FLAG_KERNARG | FINE_GRAINED.
REGION_SEGMENT_GLOBAL
HSA HSA_REGION_SEGMENT_GLOBAL.
SOFTGPU_ALLOC_ALIGNMENT
SOFTGPU_ALLOC_GRANULE
SOFTGPU_MAX_ALLOC_BYTES
SoftGPU max single allocation. Not an R9700 claim.
SOFTGPU_POOL_BYTES
SoftGPU software pool capacity (host bytes). Not hardware VRAM.