interplane.Get Omega
Read in your language

CUDApp

CUDA++: AIEN’s GPU machine-code toolchain, runtime and driver client for NVIDIA GPUs without the CUDA toolkit. Hardware coverage and driver replacement limits are explicit.

Brought by drakestapleton

branch main Branches Tags History

CUDApp / evidence / C5-ISOLATION

8d1c5b8 import: omega-mv main e5b32567 GPU tests, C6 disassembler and bar receipts, unchanged Drake Stapleton committed 2026-10-27
..
01-host-only.log346
02-session-platform.log805
03-chip-values-20261022-f792cd1d.log253
03-session-mutants.log771
04-never-ending-kernel.sass.txt312
05-platform-linux.log693
README.md4679

README.md

C5: two processes, and a never-ending kernel (docs/OMEGA.md row C5)

Row C5: two processes on one GPU are both correct, or the second gets a named refusal and the first is unharmed. A never-ending kernel times out, then a correct launch succeeds in the same process.

What this branch adds (on c4/streams):

  • omega_gpu_session_recover(): the way back from a latch without restarting the process. Runs the on-close hooks (still latched, so nothing is released while the old grid may run), closes the device (Linux reference: the RM client close destroys this process's channels and the grid on them, then frees and unmaps every buffer), and only then lifts the latch and clears the parked list. The next open is a new device. omega_gpu_session_recoveries() counts them; a command list latched before the latest recovery no longer blocks.
  • The Linux platform close now reports a driver teardown fault (it used to drop it): recover then stays latched for good (the old grid may still run; the process must exit) instead of claiming success.
  • Fake-platform cases TIMEOUT_RECOVER_SAME_PROCESS, RECOVER_TEARDOWN_FAULT_STAYS_LATCHED and four new session mutants (recover keeps the latch, recover without the close, recover when not latched, recover ignores a teardown fault): each one is caught.
  • tests/gpu_isolation_test.c: the chip test (hang + recover; two processes; a hang beside a working process).

Driver docs: the vendored NVIDIA headers document NVA06C_CTRL_CMD_PREEMPT ("This command preempts a channel group") but are silent on freeing a channel group whose grid never ends (RM source not vendored). The chip run is the proof.

Review fixes (independent Opus review, 2026-10-22):

  • The never-ending launch now passes one argument word (a launch with none is refused before submit, so the hang part would never have hung).
  • The two processes are started together after both are set up and each runs at least 3 s; their time spans must overlap by at least half of that. Beside a hang, process 1 starts at process 2's "hang launched" signal and keeps going until process 2 is done; it must have launches inside that stretch.
  • "Grid destroyed" is not claimed from timings: it rests on the driver's clean close (a teardown fault keeps the session latched, case RECOVER_TEARDOWN_FAULT_STAYS_LATCHED).
  • A command list made before a recovery is refused (its buffers are gone); the chip test checks it.
  • A command-list-only latch (check launch completed) is recoverable: omega_gpu_session_note_module_latch, case RECOVER_MODULE_LATCH, mutant recover-ignores-module-latch. Session tests 16/16, mutants 11/11.
  • C4 parts fixed here too (so merge c5/isolation, which contains c4/streams): a launch that waits always gets the full WAIT_FOR_IDLE + invalidate; a list with waits runs only in submit_pair with the list it waits on.
filewhatresult
01-host-only.logcodegen + encode of the work, mutant and never-ending kernels; simulator exact, mutant caughtPASS (5 checks), 2026-10-24T23:29Z on the train tip
02-session-platform.logthe session on a fake GPU, both recover cases includedPASS 16/16, 2026-10-24T23:29Z on the train tip
03-session-mutants.log11 broken copies of the session, each caught11/11 killed, 2026-10-24T23:29Z on the train tip
05-platform-linux.logthe Linux platform on a simulated driver7/8 on the train tip (2026-10-24T23:29Z): the one failure, CMDLIST_NEAR_CAP_SUBMITS_WITH_L2_INVAL_PENDING, is main's own regression from omega-mv #712 (OMEGA_GPU_CMDLIST_MAX_LAUNCHES 2048 -> 4096; the test hard-codes 2 submissions, 4096 launches take 4). Plain main 9a8a0fe2 fails it the same way; the old head 5cb252994 passed 8/8. Fixer lane L823 (ledger) fixes the test on main. Nothing in this layer changes that case.
04-never-ending-kernel.sass.txtour disassembler: IADD3; BRA 0x20 (branch back for ever)as designed
03-chip-values-20261022-f792cd1d.logchip, values only, 2026-10-22 07:06Z on c5/isolation f792cd1d: header only (date, head, binary sha256, command). The worker died at 07:06Z before the test printed a line. NO RESULT.NO RESULT
(chip, pending slot)hang + recover + right values; two processes right; hang beside a working process, on the train tip (the never-ending-kernel run touches the live server's GPU: 1-second-spin precursor first, then only with Drake's or the server owner's OK)NOT RUN

Chip command (GB10 lock): build/gpu_isolation_test. Safety note for the slot: the never-ending kernel is one warp; its teardown is the RM channel free, which must preempt it; this is the first chip run of that path.