CUDA unavailable on GPU platform
Written by
Updated at December 17, 2025
Issue description
CUDA is not available on the GPU platform.
Solution
Run these commands:
sudo apt update -ysudo apt upgrade -ypip3 install torch
Check whether CUDA is available by calling torch.cuda.is_available().
You may also consider using DataSphere that leverages GPU configurations. Every service project contains multiple Docker images with a specific software stack. You can still build a custom image for your project, if required.
Note
The base Docker image comes with CUDA and cuDNN pre-installed.
To check the version of these components, use the following commands:
!nvcc --versionfor CUDA.!cat /usr/include/cudnn_version.hfor cuDNN.
You might also want to check out:
- Info on NVIDIA by running
!nvidia-smi. - CUDA availability using
torchby callingtorch.cuda.is_available().