From 4cfd70bf4f5f2fde428106a5b3b91f637c1fa468 Mon Sep 17 00:00:00 2001 From: Beatriz Navidad Vilches Date: Tue, 5 Nov 2024 16:48:15 +0100 Subject: [PATCH] Update repository to ROCm 6.3.0 --- .gitlab-ci.yml | 2 +- CMakeLists.txt | 2 +- Dockerfiles/hip-libraries-cuda-ubuntu.Dockerfile | 16 ++++++++++------ Dockerfiles/hip-libraries-rocm-ubuntu.Dockerfile | 2 +- Scripts/Packaging/build_packages.sh | 2 +- 5 files changed, 14 insertions(+), 10 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index d8352b87a..e9097a0ed 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -44,7 +44,7 @@ variables: HIP_FLAGS: "-Wno-unused-command-line-argument -Wall -Wextra -Werror" # Keep in sync with ROCM_VERSION in Dockerfiles/hip-libraries-cuda-ubuntu.Dockerfile # and Dockerfiles/hip-libraries-rocm-ubuntu.Dockerfile - DOCKER_ROCM_VERSION: 6.2.0 + DOCKER_ROCM_VERSION: 6.3.0 DOCKER_HIP_LIBRARIES_ROCM_TAG: rocm-ubuntu-${DOCKER_ROCM_VERSION} DOCKER_HIP_LIBRARIES_CUDA_TAG: cuda-ubuntu-${DOCKER_ROCM_VERSION} DOCKER_HIP_LIBRARIES_ROCM: $DOCKER_TAG_PREFIX:$DOCKER_HIP_LIBRARIES_ROCM_TAG diff --git a/CMakeLists.txt b/CMakeLists.txt index 1d9cebd81..b132bfe0e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -21,7 +21,7 @@ # SOFTWARE. cmake_minimum_required(VERSION 3.21.3 FATAL_ERROR) -project(ROCm-SDK-Examples LANGUAGES CXX VERSION 6.2.0) +project(ROCm-SDK-Examples LANGUAGES CXX VERSION 6.3.0) enable_testing() add_subdirectory(Applications) diff --git a/Dockerfiles/hip-libraries-cuda-ubuntu.Dockerfile b/Dockerfiles/hip-libraries-cuda-ubuntu.Dockerfile index 9f10bf7c4..41b712f4a 100644 --- a/Dockerfiles/hip-libraries-cuda-ubuntu.Dockerfile +++ b/Dockerfiles/hip-libraries-cuda-ubuntu.Dockerfile @@ -6,7 +6,7 @@ FROM nvidia/cuda:12.6.0-devel-ubuntu22.04 # The ROCm versions that this image is based of. # Always write this down as major.minor.patch -ENV ROCM_VERSION=6.2.0 +ENV ROCM_VERSION=6.3.0 ENV ROCM_VERSION_APT=${ROCM_VERSION%.0} # Base packages that are required for the installation @@ -53,14 +53,10 @@ RUN echo "/opt/rocm/lib" >> /etc/ld.so.conf.d/rocm.conf \ ENV HIP_COMPILER=nvcc HIP_PLATFORM=nvidia HIP_RUNTIME=cuda # Install rocRAND -# We need to apply this patch to make it work on Nvidia for ROCm 6.2: https://github.com/ROCm/rocRAND/commit/7ec5fda5243e599d83af841b5c38198a2f7f05fa RUN wget https://github.com/ROCm/rocRAND/archive/refs/tags/rocm-${ROCM_VERSION}.tar.gz -O rocrand.tar.gz \ && mkdir rocrand \ && tar -xf ./rocrand.tar.gz --strip-components 1 -C rocrand \ && rm ./rocrand.tar.gz \ - && wget https://github.com/ROCm/rocRAND/commit/7ec5fda5243e599d83af841b5c38198a2f7f05fa.patch -O rocrand.patch \ - && patch -p1 -d rocrand < ./rocrand.patch \ - && rm rocrand.patch \ && cmake -S ./rocrand -B ./rocrand/build \ -D CMAKE_MODULE_PATH=/opt/rocm/lib/cmake/hip \ -D BUILD_HIPRAND=OFF \ @@ -80,6 +76,14 @@ RUN wget https://github.com/ROCm/hipCUB/archive/refs/tags/rocm-${ROCM_VERSION}.t && cmake --build ./hipcub/build --target install \ && rm -rf ./hipcub +# Install hipblas-common +RUN wget https://github.com/ROCm/hipBLAS-common/archive/refs/tags/rocm-${ROCM_VERSION}.tar.gz -O hipblas-common.tar.gz \ + && mkdir hipblas-common \ + && tar -xf ./hipblas-common.tar.gz --strip-components 1 -C hipblas-common \ + && rm ./hipblas-common.tar.gz \ + && cmake -S ./hipblas-common -B ./hipblas-common/build \ + && cmake --build ./hipblas-common/build --target install + # Install hipBLAS RUN wget https://github.com/ROCm/hipBLAS/archive/refs/tags/rocm-${ROCM_VERSION}.tar.gz -O hipblas.tar.gz \ && mkdir hipblas \ @@ -88,7 +92,7 @@ RUN wget https://github.com/ROCm/hipBLAS/archive/refs/tags/rocm-${ROCM_VERSION}. && CXXFLAGS=-D__HIP_PLATFORM_NVIDIA__ cmake -S ./hipblas -B ./hipblas/build \ -D CMAKE_MODULE_PATH=/opt/rocm/lib/cmake/hip \ -D CMAKE_INSTALL_PREFIX=/opt/rocm \ - -D USE_CUDA=ON \ + -D HIP_PLATFORM=nvidia \ && cmake --build ./hipblas/build --target install \ && rm -rf ./hipblas diff --git a/Dockerfiles/hip-libraries-rocm-ubuntu.Dockerfile b/Dockerfiles/hip-libraries-rocm-ubuntu.Dockerfile index faef197f5..4ecc33c56 100644 --- a/Dockerfiles/hip-libraries-rocm-ubuntu.Dockerfile +++ b/Dockerfiles/hip-libraries-rocm-ubuntu.Dockerfile @@ -6,7 +6,7 @@ FROM ubuntu:22.04 # The ROCm versions that this image is based of. # Always write this down as major.minor.patch -ENV ROCM_VERSION=6.2.0 +ENV ROCM_VERSION=6.3.0 ENV ROCM_VERSION_APT=${ROCM_VERSION%.0} # Base packages that are required for the installation diff --git a/Scripts/Packaging/build_packages.sh b/Scripts/Packaging/build_packages.sh index c32738063..2a9888c45 100755 --- a/Scripts/Packaging/build_packages.sh +++ b/Scripts/Packaging/build_packages.sh @@ -26,7 +26,7 @@ set -e # Default values GIT_TOP_LEVEL=$(git rev-parse --show-toplevel) PACKAGE_NAME="ROCm-SDK-Examples" -PACKAGE_VERSION="6.2.0" +PACKAGE_VERSION="6.3.0" DEB_PACKAGE_RELEASE="local.9999" RPM_PACKAGE_RELEASE="local.9999" PACKAGE_INSTALL_PREFIX="/opt/rocm/examples"