Closed ArbitRandomUser closed 8 months ago
i'll need some direction on how to proceed with this .
Do i add the version dependent if statements from GPUCompiler.JuliaContext inside native_llvm_module
? , is that a good way to go about it ?
I think version checks can go inside native_llvm_module.
@gbaraldi, I'm curious if you have any comments on this PR. You wrote the original code here.
@ArbitRandomUser sorry for the late reply, yeah you could do the version checks like in the link, but it looks like you could alternatively just use the JuliaContext
function directly here, i.e.
JuliaContext() do ctx
# code using ctx here
end
since JuliaContext
appears to use the threadsafe context already.
tested on 1.8.0 and 1.9 on my machine.
good to go ? or do we fix nightlies also ?
Thanks @ArbitRandomUser!
addressing https://github.com/tshort/StaticCompiler.jl/issues/138 native_llvm_module for multiple functions now starts a context compiles and links the functions within the same context .