ginkgo icon indicating copy to clipboard operation
ginkgo copied to clipboard

ROCm / HIP PATHs related ginkgo installation problems on Ubuntu 22.04

Open klausbu opened this issue 9 months ago • 11 comments

I am trying to install ginkgo on Ubuntu 22.04. I have an up-to-date default installation of AMD ROCm 6.1.1 which works fine. The ginkgo installation process using cmake as described on the webpage, doesn't find AMD ROCm nor HIP or any of the required cmake files so I provided the paths:

export HIP_PATH=/opt/rocm

export hipblas_DIR=/opt/rocm/lib/cmake/hipblas

export CMAKE_PREFIX_PATH=/opt/rocm/lib/cmake/hip

export AMDDeviceLibs_DIR=/opt/rocm-6.1.1/lib/cmake/AMDDeviceLibs/

export amd_comgr_DIR=/opt/rocm-6.1.1/lib/cmake/amd_comgr/

The following one triggers an error: »hsa-runtime64_DIR=/opt/rocm-6.1.1/lib/cmake/hsa-runtime64/«: Ist kein gültiger Bezeichner export hsa-runtime64_DIR=/opt/rocm-6.1.1/lib/cmake/hsa-runtime64/

I used the following cmake command: cmake -G "Unix Makefiles" -DGINKGO_BUILD_HIP=ON -DCMAKE_HIP_ARCHITECTURES="gfx1031" .. && cmake --build .

I assume the install package is not up-to-date regarding ROCm / HIP install paths?!

klausbu avatar May 17 '24 21:05 klausbu