Information about the GPU
With the following tools you can obtain information about the architecture and the current status of your GPU.
-
nvidia-smi
is a command line tool.
-
cudaDeviceProp data structure
is a data structure which you can use from your CUDA program. An example is
static.cu to read static properties of the GPU like compute capability, number of SMs, memory sizes, etc.
-
Nvidia Management Library(NVML)
is a library which you can link to your CUDA program. An example how to use it is
dynamic.cu to read dynamic properties of the GPU like current temperature and clock frequency at runtime.
Link with /usr/local/cuda/targets/x86_64-linux/lib/stubs/libnvidia-ml.so or simply flag -lnvidia-ml