Move the CUDA driver inspect script to a C binary#13116
Move the CUDA driver inspect script to a C binary#13116JamesWrigley wants to merge 2 commits intoJuliaPackaging:masterfrom
Conversation
|
Ok I gotta fix the inspect recipe on windows and musl. And the |
You can publish it to a github repo, and the install it as a regular package: https://docs.binarybuilder.org/stable/reference/#Command-Line |
This is much faster than calling the Julia script.
181f5ab to
449681e
Compare
|
Marking as draft for now because I'm somehow not able to reproduce the TTFX improvements from the precompile statements after moving the C source into |
|
Hmm the issue is that the precompile statements have to be at the top-level. Is there a way to configure BinaryBuilder to do that? |
|
Hacked around in eb9884a. I had to set |
This reduces the load time for
CUDA_Driver_jllfrom ~0.45s to ~0.08s on my system. When used with CUDA.jl:The C code was mostly written by Claude 🤖 For reviewers, I've kept the commits atomic so I'd recommend reviewing them one-by-one.
Warning: unfortunately I don't have a GPU node that I can run BinaryBuilder on (because of permissions issues) so I've only tested this on machines without a GPU. Someone with a GPU should probably try it out.