I need Cuda 10.1, for PyTorch, TensorFlow, and MatLab. They don't support Cuda 11. I also need steam to play games. Is there any way I can use Cuda's parallel processing while able to play games on steam. Please help.
Steam requires libnvidia-gl-440:i386.
The following packages have unmet dependencies:
libnvidia-gl-440:i386 : Depends: libnvidia-gl-450:i386 but it is not going to be installed
But installing libnvidia-gl-450:i386, says:
The following packages will be REMOVED:
cuda-10-1 cuda-demo-suite-10-1 cuda-drivers cuda-drivers-450 cuda-runtime-10-1 libnvidia-compute-450 libnvidia-decode-450 libnvidia-encode-450 libnvidia-gl-450 libnvidia-ifr1-450 nvidia-compute-utils-450 nvidia-driver-450 nvidia-utils-450
Tried links: Steam won't launch on Ubuntu 18.04 Steam not working on Ubuntu 20.04 but didn't help with Cuda and steam both at the same time.
Edit:
It's not only with steam, it won't allow me to use any other 32-bit application.
Installing libnvidia-gl-450:i386
asks to remove Cuda 10.1
which I can not.
I am looking for a way to run Cuda, as well as use all the 32-bit arch applications. As stated above Matlab
, Pytorch
, TensorFlow
do not support Cuda 11
.
I had the same issue (Ubuntu 18.04 and CUDA 11.0, but the issue seems to be the same)
NVidia has 3 install options. An installer by NVidia itself and two options for a .deb. The .debs don't include any i386 packages. The custom installer however does. So for Steam you need to install with the .run file.
I needed TensorRT, but that had some dependencies that didn't seem to be installed via de the .run file. It wouldn't surprise me if TensorFlow will have similar issues. The solution for that was also to install the .deb, but not cuda via the .deb.
Since things could go wrong you better make a backup of your system-files
Remove your old cuda and nvidia drivers
Get and install the runfile installer (CUDA 10.1 doesn't seem to be support Ubuntu > 18.10 though?)
Install Steam
sudo apt install steam
Steam should be able to run now
Install TensorFlow. If it complains about dependencies you might also need to install the .deb repository before TensorFlow. But make sure not to do the last step of actually installing cuda
There's no conflict with Steam and CUDA 10.1 -- The problem you describe is a result of the unwanted dependencies (on the Nvidia Drivers they include) Intel attaches to their CUDA packages. These unwanted Nvidia packages may be old drivers, older than what you have currently on your Ubuntu, or new drivers, maybe not even appropriate for your hardware. In any case, there are two possible solutions:
The supplied Ubuntu CUDA packages seem to be parts of what the Intel deb supplies, maybe they would work for you, but you have no control over versions.
Steam and the majority of games on Linux rely on 32-bit OpenGL libraries being available. However, Nvidia planned to drop 32-bit support for CUDA for some time now. Luckily, the necessary 32-bit libraries can be manually installed to make Steam work.
I suggest you install both CUDA and the 64bit driver from the Nvidia repository first, then check what version of driver has been installed. Obviously, the 32-bit library files have to match the installed driver version. The appropriate files can be obtained by using the extract only option provided by the installer e.g. for 465.19.01 get the driver and do ./NVIDIA-Linux-x86_64-465.19.01.run -x
The i386 library files are in a folder named "32". To install the 32-bit library manually:
There are some symlinks that should be created:
You will probably need to run this for the system to detect the new libraries:
Update: I can confirm this approach works with 470.57.02
Solution:
Unlock the dpkg – (message /var/lib/dpkg/lock)
You can delete the lock file with the following command:
You may also need to delete the lock file in the cache directory
Now You Can Install
libnvidia-gl-450:i386
: