-
Notifications
You must be signed in to change notification settings - Fork 540
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
Can not install hip_nvcc on Ubuntu 18.04 #820
Comments
hip_nvcc has only been tested with cuda package that comes from Nvidia's cuda repo. If you want to use nvidia-cuda-toolkit with hip_nvcc, you can ignore the cuda dependency for now by using |
$ sudo apt-get install hip_nvcc cuda- The following packages have unmet dependencies: |
A simple solution is a |
I met the same problem? Any possible solution? |
Reading package lists... Done E: Package 'hip_nvcc' has no installation candidate |
So you say that we can correct the dependency from |
I think it would be the time to include rocm to proper distribution channels (as part of distributions, for example, Debian, Ubuntu Fedora, where dependencies are very well managed). Hopefully AMD is working toward this goal. |
@avidov You need to download the apt-get download hip-nvcc # downloaded as e.g. hip-nvcc_4.3.21300.5994.40300-52_amd64.deb
dpkg-deb -x hip-nvcc_4.3.21300.5994.40300-52_amd64.deb hip-nvcc-d
dpkg-deb --control hip-nvcc_4.3.21300.5994.40300-52_amd64.deb hip-nvcc-d/DEBIAN Manually edit the following line in
Repackage and install from your tweaked one dpkg -b hip-nvcc hip-nvcc_4.3.21300.5994.40300-52_amd64_tweaked.deb
apt-get install ./hip-nvcc_4.3.21300.5994.40300-52_amd64_tweaked.deb |
@rosenrodt Thank you, with your instructions of editing the package manually, I was able to install hip-runtime-nvidia package to Ubuntu 22.04 LTS. Is there any easier way nowdays? sidenote: I also had to edit the header files manually for CUDA 12.x combatibility: |
Hey @mikaelkuisma1, even I could install hip-runtime-cuda following the steps but am unable to run HIP codes yet, was there anything else you had to do like changing environment variables to run your codes? |
I was able to work around this by creating a fake "cuda" package using |
@sampie Do you still need assistance with this issue? If not, please close ticket. Thanks! |
So, is this now fixed? In what ROCm version this is fixed? |
Hi @sampie, An internal ticket has been created to fix this issue. Thanks! |
@sampie, nvidia-cuda-toolkit is not supported by hip-nvcc. To resolve the dependency issue noted in this ticket, please install the cuda package from https://developer.nvidia.com/cuda-downloads. Thanks! |
@harkgill-amd What is the difference of cuda package from nvidia and the nvidia-cuda-toolkit package provided by ubuntu repositories, that is, why nvidia-cuda-tookit package is not supported by hip-nvcc? In my ubuntu 24.04 they both seem to provide cuda version 12. |
The difference between the two packages lies in the installation paths. The official cuda package is installed in /usr/local/cuda whereas nvidia-cuda-toolkit is installed in distribution specific paths. There are various dependencies that look for the cuda installation at /usr/local/cuda. There are currently no plans on enabling support for nvidia-cuda-toolkit, however; open source contributions that enable this are welcome. Thank you! |
Just installed 12.5 using that URL - but still get this;
|
Hi @RobQuistNL, could you try |
@RobQuistNL Hi, I also meet same error, have you resolved the cuda dependency ? |
@Siomarry what I did was this; |
Hi
I am trying to install HIP support on an environment having NVIDIA hardware.
Unfortunately running "apt-get install hip_nvcc" says:
hip_nvcc : Depends: cuda (>= 7.5) but it is not installable
I have nvidia-cuda-toolkit (9.1.85-3ubuntu1) package installed on my system.
How hip_nvcc can be installed to Ubuntu 18.04?
The text was updated successfully, but these errors were encountered: