Repository navigation
Compile with GPUCompiler's do-block compile - #995
Conversation
It runs the inspection in the context of the IR, which can belong to libLLVMGPU with GPUCompiler's llvmgpu toolchain. Reading it through Julia's LLVM instead crashed or hung, e.g. in the precompile workload. The do-block form is new in GPUCompiler 2.24, so require that.
Benchmark resultsCompared with 2b0e90c0e, the merge base. Times are the minimum time of every benchmark. A change is unusual when it exceeds both three times the benchmark's typical change between consecutive runs on the default branch and a minimum per category (performance 3%, latency 5%, applications 3%, other 3%). A benchmark that starts or stops allocating is listed however few the allocations. A single run can still be a fluke, so rerun before drawing conclusions.
All benchmarks
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #995 +/- ##
==========================================
- Coverage 89.99% 89.24% -0.75%
==========================================
Files 33 33
Lines 3059 3004 -55
==========================================
- Hits 2753 2681 -72
- Misses 306 323 +17 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
The POCL back-end now compiles with GPUCompiler's do-block form of
compile(JuliaGPU/GPUCompiler.jl#1124), which runs the inspection of the IR (entry name, thejulia.opencl.rngattribute, exception sites) in the IR's own context and frees the IR afterwards. With GPUCompiler's upcomingllvmgputoolchain (JuliaGPU/GPUCompiler.jl#1122), the IR can belong to libLLVMGPU, a newer LLVM than Julia's; reading it through Julia's LLVM, ascompile_to_objdid, segfaults inllvm::Value::getNamewhile precompiling KernelAbstractions, which breaks every downstream llvmgpu CI job. The do-block form is new in GPUCompiler 2.24, so the compat is raised to that.finish_module!andfinish_linked_module!run before the IR moves to libLLVMGPU and need no changes.Validated on Julia 1.12 with GPUCompiler from #1122 plus #1124: the test suite passes with the default toolchain (13028 passed, 0 failed) and with
toolchain = "llvmgpu"(same counts, precompiled launch included), whilemainsegfaults during precompilation under llvmgpu. Two checks were left out locally, unrelated to this change: Aqua's persistent-tasks check (it can't resolve a dev'd GPUCompiler checkout) and the "POCL session" subprocess, which segfaults in "null pointer arguments" on that machine withmainand with registered KA 0.10.8 + GPUCompiler 2.23.4 as well, but passes on CI.