Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
galabovaa authored Feb 5, 2025
1 parent 8a16235 commit 8ee78d8
Showing 1 changed file with 23 additions and 12 deletions.
35 changes: 23 additions & 12 deletions src/pdlp/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,28 +6,44 @@

https://developer.nvidia.com/cuda-toolkit

#### Check and further installation
#### nvidia-smi Check drivers

* Before installing anything more, run the following in a terminal
To utilize the maximum potential of any hardware, relevant drivers for that hardware are installed onto the system. There exists a tool named “nvidia-smi” which helps to manage NVidia GPU hardware all through the terminal on the Linux operating system.

* Before installing anything, run the following in a terminal to check if nvidia-smi is present and can see the GPUs

``
nvidia-smi
``

This should print a table of GPU-related stats. If it doesn't, get in touch with Ivet, because trying to install drivers separately from the cuda toolkit can lead to a lot of trouble on different Ubuntu setups.
This should print a table of GPU-related stats. If it doesn't don't worry: installing the Cuda Toolkit from https://developer.nvidia.com/cuda-toolkit should help!

* Run the following in a terminal
### Install CUDA from website

Download Cuda from https://developer.nvidia.com/cuda-toolkit for the appropriate OS and architecture.

Note, that installing the `nvidia-cuda-toolkit` package from apt will work on many Linux installations, *but* if the drivers are missing and you attempt to install them with
``
nvcc --version
apt install nvidia-cuda-toolkit
apt install nvidia-utils-515
``
or `nvidia-utils-some-other-number`, this may lead to errors with versions of cuda libraries on versions of Lunux that are resolved by cleaning up the cuda drivers and toolkit from the machine and installing the toolkit from the website, which should give you the drivers as well.

This should give you details about the cuda compiler driver. If it doesn't then run
If you run into any trouble, please get in touch with Ivet right away so we can look at it together. Ivet did have some trouble getting it all to work on her laptop and is still learning about supporting different versions of Cuda on different operating systems.

Check again that the drivers are present by running
``
apt install nvidia-cuda-toolkit
nvidia-smi
``

* Run the following in a terminal

``
nvcc --version
``

If you see a version, this means that the cuda compiler nvcc is up and running.

When both work, you should check that `/usr/local/cuda` exists.

#### Build
Expand All @@ -39,8 +55,3 @@ When both work, you should check that `/usr/local/cuda` exists.
cmake -DCUPDLP_GPU=ON -DALL_TESTS=ON ..; make
``






0 comments on commit 8ee78d8

Please sign in to comment.