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

ERANGE usage #201

Open
tammyleino opened this issue Mar 22, 2022 · 3 comments
Open

ERANGE usage #201

tammyleino opened this issue Mar 22, 2022 · 3 comments
Labels

Comments

@tammyleino
Copy link
Collaborator

Is there a reason a new error code, METAL_ERANGE, was not created instead of using -ERANGE?

@tammyleino
Copy link
Collaborator Author

I see that the METAL_XYZ return codes are used for routines that return unsigned values and EINVAL and ERANGE are used for routines that return int. Has the possible case been ruled out for the unsigned routines that the error code and valid data would overlap and the user would think the routine was not successful?

@arnopo
Copy link
Contributor

arnopo commented Mar 30, 2022

Please could you provide some concrete examples to illustrate your point?

@github-actions
Copy link

This issue has been marked as a stale issue because it has been open (more than) 45 days with no activity.

@github-actions github-actions bot added the Stale label Oct 14, 2023
@arnopo arnopo reopened this Oct 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants