Answers for "how to check how many cuda devices available"

4

check for cuda version

nvidia-smi
nvcc --version
Posted by: Guest on May-18-2021
0

check cuda

function lib_installed() { /sbin/ldconfig -N -v $(sed 's/:/ /' <<< $LD_LIBRARY_PATH) 2>/dev/null | grep $1; }
function check() { lib_installed $1 && echo "$1 is installed" || echo "ERROR: $1 is NOT installed"; }
check libcuda
check libcudart
Posted by: Guest on May-20-2021

Code answers related to "how to check how many cuda devices available"

Browse Popular Code Answers by Language