Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
May 28, 2024

Conversation

jjfumero
Copy link
Member

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.

  • OpenCL
  • PTX
  • SPIRV

OS tested

Mark the OS where this PR is tested.

  • Linux
  • OSx
  • Windows

Did you check on FPGAs?

If it is applicable, check your changes on FPGAs.

  • Yes
  • No

How to test the new patch?

make 
make tests

@jjfumero jjfumero added bug Something isn't working OpenCL osx labels May 28, 2024
@jjfumero jjfumero requested review from mikepapadim and stratika May 28, 2024 09:32
@jjfumero jjfumero self-assigned this May 28, 2024
@jjfumero jjfumero merged commit f98c252 into beehive-lab:develop May 28, 2024
2 checks passed
@jjfumero jjfumero deleted the hotfix/compilation/osx branch May 28, 2024 09:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working OpenCL osx
Projects
Development

Successfully merging this pull request may close these issues.

3 participants