Skip to content

Conversation

@danieldk
Copy link
Member

Add general.cuda.python-depends and general.xpu.python-depends.

Currently nvidia-cutlass-dsl is supported for CUDA and onednn for XPU.

@danieldk danieldk marked this pull request as draft December 12, 2025 15:58
@danieldk danieldk force-pushed the backend-deps branch 2 times, most recently from 94f085a to bdbdbd7 Compare December 15, 2025 13:17
Add `general.cuda.python-depends` and `general.xpu.python-depends`.

Currently `nvidia-cutlass-dsl` is supported for CUDA and `onednn` for
XPU.
@danieldk danieldk marked this pull request as ready for review December 15, 2025 13:21
Copy link
Collaborator

@MekkCyber MekkCyber left a comment

Choose a reason for hiding this comment

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

lgtm

Comment on lines +139 to +148
Backend::Cuda => self
.cuda
.as_ref()
.and_then(|cuda| cuda.python_depends.as_ref()),
Backend::Xpu => self
.xpu
.as_ref()
.and_then(|xpu| xpu.python_depends.as_ref()),
_ => None,
};
Copy link
Collaborator

Choose a reason for hiding this comment

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

small nit, it shouldn't be a problem if we add all the backends here since it would make it easier to add dependencies for other backends in the future

Copy link
Member Author

Choose a reason for hiding this comment

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

But we'd have to return empty iterators (or already add python-depends to other backends as well). Maybe it's worth to do an extra PR with the latter.

@danieldk danieldk merged commit 647fcb3 into main Dec 16, 2025
28 of 29 checks passed
@danieldk danieldk deleted the backend-deps branch December 16, 2025 10:50
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.

3 participants