util-docker: Fix building gcn-gpu image
In the gcn-gpu image, rocBLAS wasn't able to be installed. This was due to us not installing rocm-cmake, as rocBLAS is dependent on it and will download the most recent version of rocm-cmake if it isn't installed. The most recent version of rocm-cmake wasn't compatible with the version of ROCm we're using. This patch installs rocm-cmake before building and installing rocBLAS instead of after. Change-Id: Iaaa34d5e0d6594fddd0d1a7d147f43405163ca89 Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/50847 Reviewed-by: Matt Sinclair <mattdsinclair@gmail.com> Reviewed-by: Bobby R. Bruce <bbruce@ucdavis.edu> Maintainer: Matt Sinclair <mattdsinclair@gmail.com> Maintainer: Bobby R. Bruce <bbruce@ucdavis.edu> Tested-by: kokoro <noreply+kokoro@google.com>
This commit is contained in:
@@ -98,6 +98,10 @@ RUN apt -y install ./hip-base*.deb ./hip-rocclr*.deb
|
||||
RUN ln -s /HIP/build/rocclr/CMakeFiles/Export/_opt/rocm/hip/lib/cmake/hip/* /opt/rocm/hip/lib/cmake/hip/
|
||||
WORKDIR /
|
||||
|
||||
# rocBLAS downloads the most recent rocm-cmake if it isn't installed before
|
||||
# building
|
||||
RUN apt install rocm-cmake
|
||||
|
||||
RUN git clone -b rocm-4.0.0 \
|
||||
https://github.com/ROCmSoftwarePlatform/rocBLAS.git && mkdir rocBLAS/build
|
||||
|
||||
@@ -109,7 +113,7 @@ RUN ./install.sh -d -a all -i
|
||||
WORKDIR /
|
||||
|
||||
# MIOpen dependencies + MIOpen
|
||||
RUN apt install rocm-cmake rocm-clang-ocl miopen-hip
|
||||
RUN apt install rocm-clang-ocl miopen-hip
|
||||
|
||||
# Clone MIOpen repo so that we have the kernel sources available
|
||||
RUN git clone -b rocm-4.0.1 https://github.com/ROCmSoftwarePlatform/MIOpen.git
|
||||
|
||||
Reference in New Issue
Block a user