Torch.cuda.device_count() return 1 with 1080Ti GPU

i have a 1080Ti GPU with ubuntu os. but when i run the command line


it returns 1. i also try it in terminal, it also return 1
i google this problem, find this
but this link it provides doesn’t work


What is the problem? If you have one GPU, then the device count is 1.

1 Like

thank you, I confused the two concepts of GPU and GPU computing unit.
i thought the return of this command is the count of GPU computing unit. thank you