Skip to content

Update Ubuntu version of CI tests #1232

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

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/cuda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
# https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/
build_nvcc:
name: NVCC 11.8 SP
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
if: github.event.pull_request.draft == false
env:
CXXFLAGS: "-Werror"
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/hip.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@ on: [push, pull_request]
jobs:
build_hip:
name: HIP SP
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
# -Werror
env: {CXXFLAGS: "-Wno-deprecated-declarations -Wno-error=pass-failed"}
steps:
- uses: actions/checkout@v4

- name: install dependencies
shell: bash
run: .github/workflows/setup/hip.sh 6.3.2
run: .github/workflows/setup/hip.sh

- name: CCache Cache
uses: actions/cache@v4
Expand Down
15 changes: 9 additions & 6 deletions .github/workflows/setup/hip.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,15 @@ sudo apt-key add rocm.gpg.key

source /etc/os-release # set UBUNTU_CODENAME: focal or jammy or ...

echo "deb [arch=amd64] https://repo.radeon.com/rocm/apt/${1-latest} ${UBUNTU_CODENAME} main" \
VERSION=${1-6.3.2}

echo "deb [arch=amd64] https://repo.radeon.com/rocm/apt/${VERSION} ${UBUNTU_CODENAME} main" \
| sudo tee /etc/apt/sources.list.d/rocm.list
echo 'export PATH=/opt/rocm/llvm/bin:/opt/rocm/bin:/opt/rocm/profiler/bin:/opt/rocm/opencl/bin:$PATH' \
| sudo tee -a /etc/profile.d/rocm.sh
# we should not need to export HIP_PATH=/opt/rocm/hip with those installs

sudo apt-get clean
sudo apt-get update

# Ref.: https://rocmdocs.amd.com/en/latest/Installation_Guide/Installation-Guide.html#installing-development-packages-for-cross-compilation
Expand All @@ -57,11 +60,11 @@ sudo apt-get install -y --no-install-recommends \
libzstd-dev \
ninja-build \
openmpi-bin \
rocm-dev \
rocfft-dev \
rocprim-dev \
rocrand-dev \
hiprand-dev
rocm-dev${VERSION} \
rocfft-dev${VERSION} \
rocprim-dev${VERSION} \
rocrand-dev${VERSION} \
hiprand-dev${VERSION}

# activate
#
Expand Down
Loading