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

Add more primitives to list in when parsing Expression. Fixes proble… #384

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

torsteingrindvik
Copy link
Contributor

…ms when trying to cast using u8, u16, and more.

Fixes #382

After lots of dbg printing in the proc macros I tracked this down to missing an associated type when u8, u16 was involved in casting.

Turns out the primitives was just missing from a list of primitives in crates/cubecl-macros/src/parse/expression.rs.

I expanded that list to have more of the base primitives, and added some more frontend tests to ensure kernels using these compile.

I'm using this change locally to write some kernels involving u16 casting and it seems to work as I'd expect.

…s when trying to cast using u8, u16, and more.

Signed-off-by: Torstein Grindvik <[email protected]>
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.

Primitive casting does not work for some primitives
1 participant