Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
FS#77360 - [hip-runtime-amd] No symlink for hip-targets.cmake in /opt/rocm/hip/lib/cmake/hip/
Attached to Project:
Community Packages
Opened by Willie Sippel (wsippel) - Thursday, 02 February 2023, 21:00 GMT
Last edited by Torsten Keßler (tpkessler) - Saturday, 18 February 2023, 14:23 GMT
Opened by Willie Sippel (wsippel) - Thursday, 02 February 2023, 21:00 GMT
Last edited by Torsten Keßler (tpkessler) - Saturday, 18 February 2023, 14:23 GMT
|
DetailsDescription:
Pytorch expects to find hip-targets.cmake in the same directory hip-config.cmake is in, /opt/rocm/hip/lib/cmake/hip/. hip-config.cmake is there, and is a symlink to /opt/rocm/lib/cmake/hip/hip-targets.cmake, as is hip-config-version.cmake, but there's no symlink to hip-targets.cmake. Manually setting the link fixes the issue. I'm not sure if this might be an upstream issue, I couldn't find anything, but the fact that the other two files are linked to the expected directory makes me think it's a bug either way. Pytorch still doesn't compile, maybe because /opt/rocm/.info/version-dev is also missing, but I have no idea which ROCm package should provide that file. This issue already existed in rocm-arch and was fixed in the metapackages back then: https://github.com/rocm-arch/rocm-arch/pull/558 Steps to reproduce: Try to compile Pytorch 1.13.1 with ROCm 5.4.2 from community-testing. |
This task depends upon
Closed by Torsten Keßler (tpkessler)
Saturday, 18 February 2023, 14:23 GMT
Reason for closing: Implemented
Saturday, 18 February 2023, 14:23 GMT
Reason for closing: Implemented
The info file is provided by rocm-core, a package I will hopefully add to [community-testing] soon. The problem with rocm-core is that AMD hasn't released its source code yet and the binary package doesn't include a license file.
> but there's no symlink to hip-targets.cmake
There's also no symlink in AMD's official package, so I think it's a problem with pytorch. Which version did you try to build? I was able to successfully build pytorch 1.21.1 with my local rocm-core without the symlink.
And don't the info files just contain the version number? I followed the old bug report and simply put "5.4.2-2" in the files, and that apparently worked. Even if you can't distribute the actual file, wouldn't echoing the version string to a file be sufficient?