r/programming • • 55m ago

How Userspace CUDA Programs Communicate with NVIDIA GPUs on Linux

https://shubham0204.github.io/blogpost/programming/cuda-executable-ioctl

To check how a simple vector addition CUDA program communicates with the kernel, I started by using the strace utility and found nearly all of them to be ioctl system calls. Being new to ioctl, I dived deeper and ended up learning more about the Nvidia Linux kernel modules and how they communicate with the GPU device via PCIe.

I have included the details in my latest blog 'How Userspace CUDA Programs Communicate with NVIDIA GPUs on Linux'. Do read it and let me know your thoughts!

2 Upvotes

0 comments sorted by