alpaka-group / alpaka

Abstraction Library for Parallel Kernel Acceleration :llama:
https://alpaka.readthedocs.io
Mozilla Public License 2.0
358 stars 74 forks source link

Fix the device used by `KernelExecutionFixture` #2344

Closed fwyzard closed 3 months ago

fwyzard commented 3 months ago

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.