Psi Lambda LLC ψ(λκ) Kappa Library User Guide

CUDA/Kernel Attributes

The attributes of a kernel, as it is actually compiled and loaded on the GPU to execute, can be retrieved by executing the statement:

!CUDA/Kernel/Attributes MODULE=<module_name> -> <kernel_name>;

where <module_name> is the module name given and <kernel_name> is the name of the kernel. This create the following Value objects:

/kappa/CUDA/<module_name>/<kernel_name>#MaxThreadsPerBlock

/kappa/CUDA/<module_name>/<kernel_name>#StaticSharedMemory

/kappa/CUDA/<module_name>/<kernel_name>#RegistersPerThread

/kappa/CUDA/<module_name>/<kernel_name>#ConstantMemory

/kappa/CUDA/<module_name>/<kernel_name>#ThreadLocalMemory

/kappa/CUDA/<module_name>/<kernel_name>#PTXVersion

/kappa/CUDA/<module_name>/<kernel_name>#BinaryVersion

Please refer to the CUDA Reference Manual or Programming Guide for further details on these attributes and their uses.

Page