-
Notifications
You must be signed in to change notification settings - Fork 90
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
ROCm / HIP PATHs related ginkgo installation problems on Ubuntu 22.04 #1614
Comments
The cmake version is cmake version 3.22.1 How can I specify the hipcc location during the installation process? |
I think the easiest solution should be pointing HIPCXX at |
I am going in a circle, now HIPCXX is pointing to amdclang++ but the cmake flies are still not detected:
|
Can you try setting |
The following triggered the compilation on Ubuntu 22.04 with ROCm 6.1.1:
Now I need to look into the architecture specific warp size related compilation error that's discussed in the other thread. |
Dealing with warp size 32 requires some refactoring on our side (since we assume the warp size is known on the host at compile time, this assumption is violated in a mixed gfx10xx/gfx9xx build), so it is unlikely that you will be able to fix it easily. In the short run, we can only support server-grade GPUs with warp size 64. |
I don't run a mixed build, only -D CMAKE_HIP_ARCHITECTURES="gfx1031", the purpose is to test https://github.com/hpsim/OGL |
IIRC the ROCm clang compiler always claims the warp size is 64 from the host side regardless of the device architecture, so that will not make a difference. You could try patching the warpSize to be 32 inside config.hip.hpp and see if it works? |
I've been planning on setting up a CI system with a consumer GPU for a while now, I guess this is a good time to get started ;) |
That's a very good idea, I have been looking into GPU compute for CFD for years but have not been able to confirm even one of the many speedup claims so I am not going to invest in server grade hardware before I have managed to setup an effective implementation of some kind. |
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?!
The text was updated successfully, but these errors were encountered: