When I use a cuda function, how do I find the call chain corresponding to the function in the driver. #337
-
When I use a cuda function, how do I find the call chain corresponding to the function in the driver. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
There isn't a clear mapping between function calls made to the CUDA user-mode driver and functions within the open kernel modules To answer your question, probably the best thing to do would be to trace the entry points into the kernel drivers (e.g., spinkling some printks or similar). Most of the interesting calls will start with the fileops in kernel-open/nvidia/nv.c, and most of those will be ioctl. I would suggest to start with this call chain:
|
Beta Was this translation helpful? Give feedback.
-
I am reaching out to kindly inquire if there have been any new progress or findings. Have you been able to uncover any information regarding the call chain for CUDA functions within the driver? Any insights or details you could share would be immensely helpful and greatly appreciated. |
Beta Was this translation helpful? Give feedback.
There isn't a clear mapping between function calls made to the CUDA user-mode driver and functions within the open kernel modules
in this repository. There is a lot of logic implemented in the CUDA user-mode driver. So, it isn't a thin wrapper over kernel system calls (in contrast to something like glibc).
To answer your question, probably the best thing to do would be to trace the entry points into the kernel drivers (e.g., spinkling some printks or similar). Most of the interesting calls will start with the fileops in kernel-open/nvidia/nv.c, and most of those will be ioctl. I would suggest to start with this call chain: