Closed chriselrod closed 4 months ago
Yes as long as you are in the same process this is okay. (But then you don't need StaticCompiler and can just use the native target in GPUCompiler)
Thanks, you're right. I dropped the StaticCompiler dep and am now just using GPUCompiler directly.
Code like this works as intended (so long as you only have a single argument #152):
I get
However, it also emits the warning
because it is using a literal pointer in the generated code.
It seems like this should be okay with the ORC JIT, as we're using it in the same process as the host Julia process, so that pointer should be valid and stable.
But I'd like to check whether this should really be okay and the warning is spurious for this use case, or if there is something else I ought to be doing.