Link: Embed gpu fatbin file into generated code by stonea · Pull Request #18628 · chapel-lang/chapel · GitHub
Merge pull request #18628 from stonea/gpu_bundle_bin
embed generated gpu kernel code into generated executable rather than a separate file
AKA: Embed gpu fatbin file into generated code
This PR reads and store the contents of the generated
.fatbin file into a global string variable called
chpl_gpuBinary. It also modifies Chapel's GPU runtime library to use that variable rather than reading in the
.fatbin file at runtime. This change also has it so we dump the .fatbin file into the temporary directory and have the main process (forked in codegen) responsible for cleaning it up.
[Reviewed by @mppf] Thanks!
Modified Files: A compiler/next/include/chpl/util/filesystem.h