Skip to content

[CUDA] Add more ways finding CCCL headers in JIT - #2382

Merged
awni merged 1 commit into
ml-explore:mainfrom
zcbenz:cccl-dir
Jul 17, 2025
Merged

awni merged 1 commit into
ml-explore:mainfrom
zcbenz:cccl-dir

Conversation

@zcbenz

@zcbenz zcbenz commented Jul 17, 2025

Copy link
Copy Markdown
Member

The JIT compilation needs a certain version of CCCL headers, and the python binding just ships the headers inside the distribution. However for pure C++ programs there is no universal way to ship the headers with the program, in order to make JIT compilation work in C++ programs, there are new ways added to find CCCL headers:

  • A MLX_CCCL_DIR environment variable.
  • A MLX_CCCL_DIR compile-time define.

This will fixes some C++ tests failing with old CUDA versions.

@awni awni left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lgtm

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants