Build on both stable and beta ROCm releases
MODIFY
.gitlab-ci-gputest.yml
.gitlab-ci-gputest.yml
@@ -9,12 +9,10 @@ test:vega20:
# Allow Fiji to fail
test:s9300:
extends: .test
- before_script:
-# - echo 'deb [arch=amd64] http://repo.radeon.com/rocm/apt/.apt_2.2/ xenial main' | $SUDO_CMD tee /etc/apt/sources.list.d/rocm.list
- - $SUDO_CMD apt-get update -qq
- - $SUDO_CMD apt-get upgrade -qq
+ variables:
+ ROCM_REPO_URL: "http://repo.radeon.com/rocm/apt/.apt_2.3/"
dependencies:
- - build:rocm
+ - build:rocm_beta
tags:
- s9300
- rocm

MODIFY
.gitlab-ci.yml
.gitlab-ci.yml
@@ -32,9 +32,12 @@ variables:
# Local build options
LOCAL_CXXFLAGS: ""
LOCAL_CMAKE_OPTIONS: ""
+ ROCM_REPO_URL: ""
before_script:
+ - if [ "$ROCM_REPO_URL" != "" ]; then echo "deb [arch=amd64] $ROCM_REPO_URL xenial main" | $SUDO_CMD tee /etc/apt/sources.list.d/rocm.list ; fi
- $SUDO_CMD apt-get update -qq
+ - $SUDO_CMD apt-get upgrade -qq
- $SUDO_CMD apt-get install -y -qq libnuma-dev libunwind-dev git wget tar xz-utils bzip2 build-essential pkg-config ca-certificates
- hipconfig
# cmake
@@ -46,6 +49,32 @@ before_script:
- export CMAKE_OPTIONS=$CXXFLAGS" "$LOCAL_CMAKE_OPTIONS
- echo -e "machine projects.streamhpc.com\nlogin gitlab-ci-token\npassword ${CI_JOB_TOKEN}" > ~/.netrc
+build:rocm_beta:
+ stage: build
+ tags:
+ - rocm
+ variables:
+ SUDO_CMD: "sudo -E"
+ ROCM_REPO_URL: "http://repo.radeon.com/rocm/apt/.apt_2.3/"
+ script:
+ - mkdir build
+ - cd build
+ - CXX=hcc cmake -DBUILD_TEST=ON ../.
+ - make -j16
+ # - make package
+ artifacts:
+ paths:
+ - build/thrust/
+ - build/test/test_*
+ - build/test/CTestTestfile.cmake
+ - build/gtest/
+ - build/CMakeCache.txt
+ - build/CTestTestfile.cmake
+ - build/hipthrust*.deb
+ - build/hipthrust*.zip
+ expire_in: 2 weeks
+ when: always
+
build:rocm:
stage: build
tags:
@@ -61,7 +90,7 @@ build:rocm:
# - make package
artifacts:
paths:
- - build/library/
+ - build/thrust/
- build/test/test_*
- build/test/CTestTestfile.cmake
- build/gtest/
@@ -70,6 +99,7 @@ build:rocm:
- build/hipthrust*.deb
- build/hipthrust*.zip
expire_in: 2 weeks
+ when: always
.test:
stage: test

Build on both stable and beta ROCm releases