beehive-lab / TornadoVM

TornadoVM: A practical and efficient heterogeneous programming framework for managed languages
https://www.tornadovm.org
Apache License 2.0
1.15k stars 109 forks source link

[fix][rt] support for query multiple SPIR-V supported versions #442

Closed jjfumero closed 1 month ago

jjfumero commented 1 month ago

Description

This PR expands the SPIR-V support checker for OpenCL devices with multiple versions supported.

Problem description

If the OpenCL device to use contains as description multiple OpenCL devices, using the OpenCL CL_DEVICE_IL_VERSION, then the correct version was not detected. This PR fixes that.

Backend/s tested

Mark the backends affected by this PR.

OS tested

Mark the OS where this PR is tested.

Did you check on FPGAs?

If it is applicable, check your changes on FPGAs.

How to test the new patch?

$ make BACKEND=spirv
$ tornado --devices
jjfumero commented 1 month ago

Ready for review