When a queue is passed as an argument to a KernelExecutionFixture, internally the fixture always uses the first device instead of the device associated to the queue.
This change makes it use the correct device.
Note that, if the Platform is not stateless (e.g. with SYCL), the platform data member is still wrong. However, there is no way to access the platform associated to a device object.
Since the platform object will not be used, we ignore this issue for the time being.
When a queue is passed as an argument to a
KernelExecutionFixture
, internally the fixture always uses the first device instead of the device associated to the queue. This change makes it use the correct device.Note that, if the
Platform
is not stateless (e.g. with SYCL), the platform data member is still wrong. However, there is no way to access the platform associated to a device object. Since the platform object will not be used, we ignore this issue for the time being.