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

Line support for saturating sub #385

Open
torsteingrindvik opened this issue Dec 19, 2024 · 1 comment
Open

Line support for saturating sub #385

torsteingrindvik opened this issue Dec 19, 2024 · 1 comment

Comments

@torsteingrindvik
Copy link
Contributor

I have a kernel operating on lines where I'd like to be able to do a saturating sub.

Support for this would be great.

In my particular case I would:

  • Do a saturating sub on u16 operands
  • Cast line to f16

Without saturating sub support I think I will need to

  • Cast line to f16
  • Sub
  • Clamp

Which I think is likely to be a bit slower.

@torsteingrindvik
Copy link
Contributor Author

I realize this isn't supported by non-lined primitives as well atm.

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

No branches or pull requests

1 participant