sourceextensions/blender/demos/gpu-run.xtl

1⍝│ Execute the emitted OpenCL plan, check results, then explain its trace. 2⍝│ Title: X_eTaL GPU: execution 3⍝│ Command: just ext blender gpu-run-data && just ext blender gpu-run 4⍝│ Link: https://github.com/softwarewrighter/X_eTaL-extensions/tree/main/extensions/blender/demos/gpu-run-data execution evidence 5⍝│ Run: just ext blender gpu-run 6"bl:" u̲se< "Blender" 7"bp:" u̲se< "Bpy" 8"vd:" u̲se< "Video" 9"gr:" u̲se< "GpuRun" 10ʰc̲heck ← { r → 11 n̲ot "exit 0\nerrors 0\n" m̲atch 16 t̲ake r ? ⎕P̲ANIC r 12 "exit 0; errors 0" 13} 14stats ← n̲umbers ᵇˡr̲ead "work/gpurun/stats.txt" 15timings ← 4 2 r̲eshape n̲umbers ᵇˡr̲ead "work/gpurun/timings.txt" 16timingLabels ← ᵇˡr̲ead "work/gpurun/timing-labels.txt" 17reduction ← 9 256 r̲eshape n̲umbers ᵇˡr̲ead "work/gpurun/reduction.txt" 18reductionLabels ← ᵇˡr̲ead "work/gpurun/reduction-labels.txt" 19hostLabels ← ᵇˡr̲ead "work/gpurun/host-labels.txt" 20_ ← "work/gpurun/run.py" ᵇˡw̲rite! ᵇᵖlauncher 21_ ← "work/gpurun/gpu-run.cues.toml" ᵇˡw̲rite! (ᵍʳc̲ues stats, ᵍʳcueTable) ᵛᵈc̲ues 0 22_ ← "work/gpurun/gpu-run.srt" ᵇˡw̲rite! (ᵍʳc̲ues stats, ᵍʳcueTable) ᵛᵈs̲rt 0 23_ ← "work/gpurun/video.py" ᵇˡw̲rite! ((ᵛᵈlandscape, stats, timings, timingLabels, reduction, reductionLabels, hostLabels) ᵍʳs̲cene 0) c̲at (ᵛᵈr̲ender "gpu-run.mp4") c̲at ᵛᵈreport 24_ ← "work/gpurun/short.py" ᵇˡw̲rite! ((ᵛᵈshorts, stats, timings, timingLabels, reduction, reductionLabels, hostLabels) ᵍʳs̲cene 0) c̲at (ᵛᵈr̲ender "gpu-run-short.mp4") c̲at ᵛᵈreport 25"rendering GPU execution landscape ..." 26ʰc̲heck "work/gpurun/run.py" ᵇˡr̲un! "work/gpurun/video.py work/gpurun/out" 27"rendering GPU execution Short ..." 28ʰc̲heck "work/gpurun/run.py" ᵇˡr̲un! "work/gpurun/short.py work/gpurun/out-short" 29ᵇˡr̲ead "work/gpurun/out/report.txt"