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

cudaGetPointAttributes() for validating pointers passed to helper methods #4

Open
Robadob opened this issue Jun 23, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@Robadob
Copy link
Member

Robadob commented Jun 23, 2022

From @ptheywood's original comment

It may be worth adding use of cudaPointerGetAttributes in the validation methods (assuming cuda is always available) to detect when users pass device pointers to the validation methods, and provide them with a useful error message.
CUDA 11.0+ this should be relatively simple (if the docs are to be belived), older CUDA's will need some manual error handling in the case of unregistered host pointers (I.e. the expected use case).

CUDA's that didnt' support UVA on windows might not like this at all either. Shouldn't be an issue though as Windows + UVA has been supported since ~ CUDA 8 IIRC.

Docs

Related: RSE-Sheffield/COMCUDA_CLAHE_assignment#4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant