cuda versions code example Example 1: cuda version check nvcc --version Example 2: cudaa nn version cat /usr/include/cudnn.h | grep CUDNN_MAJOR -A 2