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

Integrated profiler: detect lack of permissions #2237

Closed
maleadt opened this issue Jan 15, 2024 · 0 comments
Closed

Integrated profiler: detect lack of permissions #2237

maleadt opened this issue Jan 15, 2024 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@maleadt
Copy link
Member

maleadt commented Jan 15, 2024

We already do this for @device_code_sass:

res = CUPTI.unsafe_cuptiSubscribe(subscriber_ref, callback, Base.pointer_from_objref(cubin))
if res === CUPTI.CUPTI_ERROR_INSUFFICIENT_PRIVILEGES
error("""Insufficient privilege: You don't have permissions to profile GPU code, which is required for `code_sass`.
Get administrative privileges or allow all users to profile: https://developer.nvidia.com/ERR_NVGPUCTRPERM#SolnAdminTag""")

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

No branches or pull requests

1 participant