Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/CUDApp/blob/main/tools/c5/c5_matrix.om # 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 Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `CUDApp / tools / c5 / c5_matrix.om` 469 lines · 9679 bytes Raw Blame History 1 note SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 2 note tools/c5/c5_matrix.om -- bar C5 multi-process matrix on one GPU, orchestrated in seeded Omega (no C). 3 note Usage: c5_matrix ISO PY CASE 4 note ISO the gpu_isolation_test binary (CUDA++ tests/gpu_isolation_test.c, built unchanged) 5 note PY a Python with PyTorch; it runs the CUDA tenant (NVIDIA's stack, a verification oracle, not CUDA++ code) 6 note CASE c ISO --values-only (our two processes) beside a running CUDA process; all three must be right 7 note p the same while the CUDA process holds 16 GiB of device memory it wrote and checks at the end 8 note k ISO's chip tier is killed (SIGKILL, whole process group) 500 ms into its never-ending launch beside 9 note a CUDA process; the group must be gone within 20 s (the driver frees the hung channel on exit, which 10 note took 2.3-4.6 s on the GB10 with Xid 109), a fresh ISO --values-only must pass, the CUDA process stays right 11 note r red control: the CUDA process checks against a wrong expectation; the orchestrator must see exit 1 12 note Children run with an empty environment and their stdout and stderr on a pipe that this program echoes. 13 note Exit 0 PASS, 1 FAIL, 2 usage or NOT_RUN. 14 text tenant "import os,sys,time,torch\ns=float(sys.argv[1]);h=int(sys.argv[2]);w=int(sys.argv[3])\nd=torch.device('cuda');k=None\nif h:k=torch.ones(h*`268435456`,device=d)\nx=torch.arange(1<<20,dtype=torch.float32,device=d);c=torch.arange(1<<20,dtype=torch.float32)\nn=0;b=0;print('[cuda] READY pid=%d hold_gib=%d expect_offset=%d'%(os.getpid(),h,w),flush=True);t=time.time()\nwhile time.time()-t