HIP icon indicating copy to clipboard operation
HIP copied to clipboard

Installation of `*.cmake` files possibly wrong?

Open dipietrantonio opened this issue 2 years ago • 2 comments

Hi all, I am installing ROCm on a custom location, let's say $INSTALL_DIR. When trying to compile rocSolver, i get the following error:

CMake Error at $INSTALL_DIR/hip/lib/cmake/hip/hip-config.cmake:199 (include):
  include could not find requested file:

    $INSTALL_DIR/hip/lib/cmake/hip/hip-targets.cmake
Call Stack (most recent call first):
  CMakeLists.txt:146 (find_package)

In fact, that file is located under $INSTALL_DIR/lib/cmake/hip.

My installation looks like this:

$ ls $INSTALL_DIR/hip/lib/cmake/hip/
hip-config.cmake  hip-config-version.cmake
$ ls $INSTALL_DIR/lib/cmake/hip
FindHIP  FindHIP.cmake  hip-config.cmake  hip-config-version.cmake  hip-targets.cmake  hip-targets-release.cmake

Is there a problem with the installation process?

dipietrantonio avatar Jul 06 '22 17:07 dipietrantonio

This should be closed as a dup of https://github.com/ROCm-Developer-Tools/HIP/issues/3145 and the newer issue has more discussion.

acxz avatar May 04 '23 16:05 acxz

I don't think this is a duplicate of #3145; the name of the missing file in that issue (FindHIP.cmake) is different to the file in this issue (hip-targets.cmake). I get the same error reported by @dipietrantonio using a Spack build of [email protected]+cuda

milthorpe avatar Nov 27 '23 01:11 milthorpe

@milthorpe Apologies for the lack of response. Can you please test with latest ROCm 6.0.2 (HIP 6.0.32831) to see if issue still exists? Thanks!

ppanchad-amd avatar Apr 09 '24 14:04 ppanchad-amd