KIRETH RESEARCH — SEMANTIC LIBRARY
GPU RESOURCE ONTOLOGY — FLOW ALGEBRA v1.0
Category: Computational Entities > Resource Entities
Authors: Mark Anthony Higgins — Sky Recursive AI
Source: https://kirethresearch.org/booksai-core/entity-graph/computational-entities/resource-entities/gpu-resource-ontology.html
Prepared: 11 November 2026
Status: Constructed topic-level mapping; not a verified transcription of the source page.
1. PURPOSE
Represent a GPU resource as a bounded, observable compute and memory allocation capable of executing graphics, numerical or machine-learning workloads. Distinguish physical devices, logical partitions, contexts and schedulable quotas.
2. HST STATE MODEL
S_t = (I_t, R_t, B_t, K_t)
I_t: requested kernels, tensors, buffers, device requirements and telemetry.
R_t: GPU-to-host, device-to-memory, workload-to-context, allocation-to-tenant and dependency relationships.
B_t: capacity, compatibility, isolation, access, thermal, power and scheduling boundaries.
K_t: driver/runtime capabilities, allocation history, device topology and performance observations.
E_t = expand(I_t, R_t)
V_t = {x in E_t | satisfies(x, B_t)}
x*_t = argmax_(x in V_t) P(x | I_t, R_t, B_t, K_t)
I_(t+1) = update(I_t, x*_t, observation_(t+1))
The score P is a selection policy, not an empirical probability unless calibrated.
3. ENTITY MODEL
GPU_RESOURCE = (resource_id, device_id, vendor, architecture, driver_version, compute_capability, memory_total, memory_available, execution_capacity, partition_id, health, power_limit, state, timestamp).
Related entities: Host, PhysicalGPU, GPUPartition, ComputeContext, Stream, Kernel, Workload, MemoryAllocation, Scheduler, Tenant, Driver, Runtime, TelemetrySample.
States: discovered, available, reserved, allocated, busy, throttled, draining, unavailable, failed.
Memory capacity and execution capacity are separate constraints. A virtual GPU or partition is not automatically equivalent to an entire physical GPU.
4. RELATIONSHIP GRAPH
Host --contains--> PhysicalGPU
PhysicalGPU --exposes--> GPUResource
GPUResource --may_be_partitioned_into--> GPUPartition
Workload --requires--> GPUResource
Scheduler --assigns--> Workload
Workload --uses--> ComputeContext
ComputeContext --submits--> Kernel
Kernel --reads_or_writes--> MemoryAllocation
TelemetrySample --describes--> GPUResource
Tenant --holds--> Allocation
Driver --enables--> DeviceOperation
5. CORE FLOW ALGEBRA
F1 DISCOVERY:
request -> enumerate accessible devices -> inspect capability -> validate driver/runtime -> resource candidates.
F2 ADMISSION:
workload requirements -> expand compatible devices -> filter by memory, execution quota, access and health -> candidate allocation.
F3 RESERVATION:
candidate -> atomic capacity check -> reserve memory/quota -> attach owner and expiry -> reserved resource.
F4 EXECUTION:
allocated resource -> create/attach context -> stage inputs -> submit kernels -> synchronise required dependencies -> collect result.
F5 MONITORING:
telemetry -> classify utilisation, memory pressure, error state, temperature and throttling -> update resource state.
F6 RELEASE:
completion or cancellation -> synchronise/terminate outstanding work as required -> free allocations -> update ledger -> available capacity.
F7 RECOVERY:
fault -> quarantine affected allocation -> preserve error evidence -> apply bounded retry or failover policy -> terminal result.
6. INFERENCE RULES
R1: IF free_device_memory < requested_peak_memory THEN reject admission or seek a compatible alternative.
R2: IF required_compute_capability is unsupported THEN reject device candidate.
R3: IF allocation would exceed tenant quota THEN deny reservation.
R4: IF device is unhealthy or unavailable THEN exclude from schedulable candidates.
R5: IF temperature/power constraints trigger throttling THEN revise expected throughput; do not assume failure.
R6: IF kernel completion is not synchronised THEN output readiness cannot be inferred solely from submission.
R7: IF an allocation is released THEN accounting must reconcile against its owner and allocation identifier.
R8: IF a partition provides insufficient isolation THEN do not claim security isolation between tenants.
7. MINI RECURSION ENGINE
function allocate_gpu(workload, candidates, visited, depth, max_depth):
if depth >= max_depth: return FAILURE('search bound reached')
for gpu in candidates:
if gpu.id in visited: continue
visited.add(gpu.id)
if not compatible(workload, gpu): continue
if not within_policy(workload, gpu): continue
reservation = atomic_reserve(gpu, workload)
if reservation.success: return SUCCESS(reservation)
return FAILURE('no admissible capacity')
Termination: finite candidate set, visited-set exclusion and explicit depth bound.
Concurrency: atomic reservations and authoritative ledgers are required to prevent overcommit.
8. SEMANTIC EQUIVALENCE
GPU resource != GPU device (a resource may be a quota, slice or partition).
Allocated GPU != available GPU.
Free VRAM != guaranteed allocatable contiguous VRAM.
Kernel submitted != kernel completed.
Utilisation percentage != throughput or useful work.
Compute compatibility != driver, runtime or framework compatibility.
9. EXECUTION TRACE EXAMPLE
Input: inference workload requires 8 GiB device memory and a supported runtime.
Expand: GPU-A (6 GiB free), GPU-B (12 GiB free), GPU-C (16 GiB free but incompatible runtime).
Filter: remove GPU-A for memory and GPU-C for compatibility.
Select: GPU-B subject to access and quota validation.
Reserve atomically; stage data; execute; await completion; record telemetry; release allocation.
If GPU-B changes state before reservation, retry candidate evaluation within the configured bound.
10. OPERATIONAL BOUNDARIES AND GUARANTEES
Safety depends on accurate telemetry, correct compatibility metadata, enforced quotas and atomic allocation.
A bounded search guarantees termination, not successful scheduling, fairness, determinism or absence of device faults.
Memory fragmentation, asynchronous execution, shared-device contention, power limits and driver failures may invalidate performance expectations.
Observability must distinguish device-level metrics from per-process or per-partition metrics.
11. PROVENANCE AND CITATION
Citation: Higgins, Mark Anthony; Sky Recursive AI. 'GPU Resource Ontology — Flow Algebra v1.0'. Kireth Research Semantic Library, 11 November 2026.
Source topic: https://kirethresearch.org/booksai-core/entity-graph/computational-entities/resource-entities/gpu-resource-ontology.html
This text is an original topic-based Flow Algebra construction; it does not claim to reproduce inaccessible source-page specifications.
Download Code
Copy to Clipboard