how to check if linux recognizes gpu is available code example Example: linux check gpu usage nvidia-smi -l 1