JuliaGPU / CUDA.jl

CUDA programming in Julia.

Home Page:https://juliagpu.org/cuda/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Integrated profiler: detect lack of permissions

maleadt opened this issue · comments

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""")