Stateful FFI instantiate function does not have access to GPU #31991
Unanswered
johnviljoen
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi - I am wanting to build on this example.
Specifically I am wanting to pass
.Ctx<ffi::PlatformStream<cudaStream_t>>()to the instantiate function, which works for the execution function. However I have not been able to find the "switch" - if one exists - to tell XLA/JAX to allow for this to happen. The error I get is clear:Does anyone know where I need to tell the system to allow the xla ffi gpu context to be available in the instantiate phase?
My cpp code is here:
my full Python is here:
Also is there any documentation on the phases - I can of course see there is instantiation and execution, but I have seen references to prepare and initialize What is the difference between these phases, what rules do they abide by, is there any documentation?
Beta Was this translation helpful? Give feedback.
All reactions