Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question about install HIP to run on nvidia gpu #3665

Closed
huccpp opened this issue Nov 9, 2024 · 5 comments
Closed

Question about install HIP to run on nvidia gpu #3665

huccpp opened this issue Nov 9, 2024 · 5 comments

Comments

@huccpp
Copy link

huccpp commented Nov 9, 2024

I try to install HIP to run on nvidia gpu.
I looked at the instruction here:
https://rocm.docs.amd.com/projects/HIP/en/latest/install/install.html
I am on ubuntu 20.04. Earlier I have installed nvidia hpc sdk,
but the path of cuda it contains is not at /usr/local/cuda as written (it is at /opt/nvidia/.../cuda).
How to specify the path for the apt install?
And in this case, do I need to do the step
sudo apt-get install ubuntu-drivers-common && sudo ubuntu-drivers autoinstall
sudo reboot
?
Thanks a lot.

@harkgill-amd
Copy link

harkgill-amd commented Nov 11, 2024

Hi @huccpp, I believe your current installation at /opt/nvidia is due to cuda being installed from the Ubuntu repositories. If you install the toolkit from the official website, the installation should be done under /usr/local.

@huccpp
Copy link
Author

huccpp commented Nov 12, 2024

Hello @harkgill-amd,
Thanks for your reply. Earlier I installed the nvidia hpc sdk from
https://developer.nvidia.com/hpc-sdk-downloads
which includes things in cuda toolkits, but inside /opt/nvidia/ .
The problem is that I wonder whether it is possible to install HIP without installing cuda toolkits as its contents are already in my nvidia hpc sdk installation (also to avoid possible conflicts).
Thanks.
huccpp

@harkgill-amd
Copy link

harkgill-amd commented Nov 14, 2024

I know of users working around the official cuda toolkit dependency by adding a | nvidia-cuda-toolkit (>= 7.5) in the hip-runtime-nvidia .deb file, see #820 (comment). Please note that this is not officially supported and may cause errors for dependencies that look for the cuda installation at /usr/local/cuda.

Not sure if the installation from the HPC SDK link satisfies either of these package requirements but it would be worth giving a try. If you could also share any errors encountered during the installation, that would be helpful in further investigating.

EDIT: You can also set the default CUDA installation path with the CUDA_PATH environment variable (ref).

@huccpp
Copy link
Author

huccpp commented Nov 26, 2024

Thanks a lot, @harkgill-amd. I eventually installed it successfully.
huccpp

@harkgill-amd
Copy link

No problem, happy to hear it's working on your end. Will close out this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants