Skip to content

OpenCL Support on MacOS (Mx) #245

Description

@Pencilcaseman

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

BREAKINGA major bug which breaks production codeRequires RewriteA large rewrite will be requiredbugSomething isn't workingc++Pull requests that update C++ code

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions