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/om/kgen/ew_ir.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 / om / kgen / ew_ir.om` 72 lines · 1294 bytes Raw Blame History 1 note SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 2 note API: kind = OmegaGpuEwOp (1..23), a = existing mutant (0..3), b = host test path (0/1), c = 0. 3 note The complete generator, including reconvergence, loop liveness metadata and pair scheduling, 4 note is seeded Omega. C unpacks the spec and invokes the single common IR replay entry. 5 fn ew_ir kind ulong a ulong b ulong c ulong ins edit ulong 8192 meta edit ulong 512 to ulong 6 for i ulong 512 7 put meta i 0 8 end 9 if or or lt kind 1 gt kind 23 or or gt a 3 gt b 1 ne c 0 10 ret 1 11 end 12 if eq a 1 13 put meta 369 1 14 end 15 if ge a 2 16 put meta 368 sub a 1 17 end 18 put meta 370 b 19 prolog ins meta 20 if eq kind 1 21 ex2 ins meta 22 end 23 if eq kind 2 24 xchg ins meta 25 end 26 if eq kind 3 27 rms ins meta 28 end 29 if eq kind 4 30 rope ins meta 31 end 32 if eq kind 5 33 swiglu ins meta 34 end 35 if and ge kind 6 le kind 11 36 staged = and sub kind 6 1 37 divg = div sub kind 6 2 38 prime ins meta staged divg 39 end 40 if eq kind 12 41 diamond ins meta 42 end 43 if eq kind 13 44 loopbrk ins meta 45 end 46 if eq kind 14 47 nested ins meta 48 end 49 if eq kind 15 50 exitbar ins meta get meta 369 51 end 52 if eq kind 16 53 depth ins meta 16 54 end 55 if eq kind 17 56 depth ins meta 17 57 end 58 if eq kind 18 59 exitbar ins meta 2 60 end 61 if ge kind 19 62 refuse ins meta kind 63 end 64 if ne get meta 13 0 65 put meta 4 11 66 end 67 schedule ins meta 68 if ne get meta 4 0 69 ret 2 70 end 71 ret 0 72 end