Skip to content

[Issue]: incorrect cmake information with TheRock 7.12 Debian install #4286

@causten

Description

@causten

Problem Description

Error...

CMake Error at /opt/rocm/core-7.12/lib/cmake/hip/hip-config.cmake:157 (message):
  Failed to detect HIP_PLATFORM using HIPCONFIG_EXEC
  (HIPCONFIG_EXEC-NOTFOUND):
Call Stack (most recent call first):
  mlir/lib/Dialect/Rock/IR/CMakeLists.txt:55 (find_package)

but it was there... /opt/rocm/core-7.12/bin/hipconfig. So the paths used by /opt/rocm/core-7.12/lib/cmake/hip/hip-config.cmake are not correct.  

Operating System

24.04.4 LTS (Noble Numbat)

CPU

AMD Ryzen Threadripper PRO 7965WX 24-Cores

GPU

AMD Radeon RX 9070 XT

ROCm Version

TheRock 7.12

ROCm Component

HIP

Steps to Reproduce

docker run -it --network=host --device=/dev/kfd --device=/dev/dri --group-add video --cap-add=SYS_PTRACE --security-opt seccomp=unconfined -v $HOME/code:/workspace ubuntu:24.04

apt update
apt install sudo wget gpg libatomic1 libquadmath0
sudo mkdir --parents --mode=0755 /etc/apt/keyrings
wget https://repo.amd.com/rocm/packages/gpg/rocm.gpg -O - | gpg --dearmor | sudo tee /etc/apt/keyrings/amdrocm.gpg > /dev/null
sudo tee /etc/apt/sources.list.d/rocm.list << EOF
deb [arch=amd64 signed-by=/etc/apt/keyrings/amdrocm.gpg] https://repo.amd.com/rocm/packages/ubuntu2404 stable main
EOF

apt update
apt install cmake
apt install amdrocm-core-dev7.12-gfx120x

Then I attempted to build migraphx.

(Optional for Linux users) Output of /opt/rocm/bin/rocminfo --support

Additional Information

The install of TheRock 7.12 went to /opt/rocm/core-7.12, Different from ROCm 7.2.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    TODO

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions