For NVIDIA GPUs, CUDA is the primary interface through which applications orchestrate GPU execution, yet much of the logic that realizes CUDA operations resides in NVIDIA's closed-source userspace driver. As a result, the translation from high-level CUDA APIs to low-level hardware commands remains opaque, limiting both software understanding and performance attribution.
This paper makes that command path visible. We recover the hardware command streams emitted by NVIDIA's closed-source userspace driver with full integrity by leveraging the recently open-sourced kernel driver, instrumenting the memory-mapping path, and installing a hardware watchpoint on the userspace mapping of the GPU doorbell register. This lets us capture complete command submissions at the moment they are committed.
Using this methodology, we present two case studies. For CUDA data movement, we identify the DMA submission modes selected by the driver and characterize their raw hardware performance independently of driver overhead through CUDA-bypassing controlled command issuance. For CUDA Graphs, we show that the reduced launch overhead in newer CUDA releases is associated with a smaller command footprint and a more efficient submission pattern. Together, these results show that command-level visibility provides a practical basis for understanding and optimizing GPU middleware behavior, improving performance interpretation, and informing future hardware--software co-design for CUDA and related accelerator stacks.
Energy efficiency of finite difference algorithms on multicore CPUs, GPUs, and Intel Xeon Phi processors
除了在高性能计算系统中常见的硬件空闲时间限制之外,未来的系统可能还将受到能量预算的限制。在目前的工作中,不同的计算和内存强度的有限差分算法的能源效率和运行时间的英特尔常春藤桥CPU节点,英特尔至强融核骑士登陆处理器,和NVIDIA特斯拉K40 c GPU进行评估。传统的方式存储的离散衍生物的解决方案的进步全球阵列被发现是低效的能源消耗和运行时间。相比之下,一类算法,其中离散化的衍生物进行评估的飞行或存储为线程/进程的本地变量(产生高计算强度)是最佳的能源消耗和运行时间。在考虑的所有三个硬件架构上,与存储器密集型算法相比,观察到高计算密集型算法的~2的加速和~2的节能。的能量消耗被发现是成比例的运行时间,无论消耗的功率和GPU相比,CPU节点上的相同的算法具有约5的节能。