Skip to content

[libspirv][generic] re-use __clc_ctz implementation for __spirv_ocl_ctz #18478

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

Open
wants to merge 2 commits into
base: sycl
Choose a base branch
from

Conversation

wenju-he
Copy link
Contributor

@wenju-he wenju-he commented May 15, 2025

Add schar variant of __clc_ctz since libspirv requires schar variant.

@wenju-he wenju-he requested a review from a team as a code owner May 15, 2025 01:38
@wenju-he wenju-he requested a review from steffenlarsen May 15, 2025 01:38
@wenju-he wenju-he temporarily deployed to WindowsCILock May 15, 2025 01:39 — with GitHub Actions Inactive
@wenju-he wenju-he temporarily deployed to WindowsCILock May 15, 2025 02:05 — with GitHub Actions Inactive
@wenju-he wenju-he temporarily deployed to WindowsCILock May 15, 2025 02:05 — with GitHub Actions Inactive
Copy link
Contributor

@steffenlarsen steffenlarsen left a comment

Choose a reason for hiding this comment

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

Much cleaner!

Copy link
Contributor

@frasercrmck frasercrmck left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks for doing these cleanups! There's still a few more to deal with, IIRC.

As an aside, I've been wanting to look into how we deal with schar and hopefully move it into the remangler. I managed it for fp16 vs Float16 and I don't think the problem is that different. Famous last words, of course.

The idea would be that we don't need to explicitly use schar anywhere and have all these differences from upstream and "pure" OpenCL C.

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