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

Hotfix to bypass clCreateWithBinaryIL for non-spirv devices on OSx #434

Closed jjfumero closed 1 month ago

jjfumero commented 1 month ago

Description

For Apple devices, OpenCL supported is < 2.1.. Thus we can't call the function clCreateProgramWithIL. To avoid errors building the OpenCL backend, we bypass this function since this will be never call, unless Apple supports SPIR-V.

Problem description

This patch fixes build errors in TornadoVM with the OpenCL backend.

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 
make tests