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

OpenCL Support on MacOS (Mx) #245

Open
Pencilcaseman opened this issue Oct 6, 2023 · 0 comments
Open

OpenCL Support on MacOS (Mx) #245

Pencilcaseman opened this issue Oct 6, 2023 · 0 comments
Assignees
Labels
BREAKING A major bug which breaks production code bug Something isn't working c++ Pull requests that update C++ code Requires Rewrite A large rewrite will be required

Comments

@Pencilcaseman
Copy link
Member

OpenCL on MacOS (M2 Max chip) seems to fail.

AGX: exceeded compiled variants footprint limit

My best guess is that this is due to the number of OpenCL function variants defined since there is one for int8_t, int16_t, int32_t, etc. for every function.


Solution?

The best idea I've got to fix this is to generate and compile the kernels at runtime. This way, only the kernels that are used by the program are produced.

Issues:

  1. Requires writing the code to generate every type of kernel
  2. Requires runtime compilation of kernels (not a pre-main* process)
  3. Might not fix the issue

I'll probably get test merged through to master in the current state as of writing this issue before working on this.

@Pencilcaseman Pencilcaseman added bug Something isn't working c++ Pull requests that update C++ code BREAKING A major bug which breaks production code Requires Rewrite A large rewrite will be required labels Oct 6, 2023
@Pencilcaseman Pencilcaseman self-assigned this Oct 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BREAKING A major bug which breaks production code bug Something isn't working c++ Pull requests that update C++ code Requires Rewrite A large rewrite will be required
Projects
None yet
Development

No branches or pull requests

1 participant