I would like to change the target device during runtime. For example, Let’s say I create a
queue as -
and run a couple of kernels with this and now want to change my target device, let’s say an intel device. Is there any way I can re-initialize the same
Queue(intel_selector). I essentially want to keep my
Queue the same but make it target different devices at runtime like an AMD GPU in the start and shift to Intel iGPU and so on.
So is there any way I could possibly write a
set_target_device method. I am not entirely sure if this is possible or not, but since it all compiles down to SPIR/SPIR-V, I could possibly take the intermediate representation and put that on different devices? (in a manner of speaking).