-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c0757e0
commit 48f83b2
Showing
2 changed files
with
62 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -eu -o pipefail | ||
|
||
# `man apt.conf`: | ||
# Number of retries to perform. If this is non-zero APT will retry | ||
# failed files the given number of times. | ||
echo 'Acquire::Retries "3";' | sudo tee /etc/apt/apt.conf.d/80-retries | ||
|
||
# Ref.: https://rocm.docs.amd.com/projects/install-on-linux/en/latest/how-to/native-install/ubuntu.html | ||
|
||
# Make the directory if it doesn't exist yet. | ||
# This location is recommended by the distribution maintainers. | ||
sudo mkdir --parents --mode=0755 /etc/apt/keyrings | ||
|
||
# Download the key, convert the signing-key to a full | ||
# keyring required by apt and store in the keyring directory | ||
wget https://repo.radeon.com/rocm/rocm.gpg.key -O - | \ | ||
gpg --dearmor | sudo tee /etc/apt/keyrings/rocm.gpg > /dev/null | ||
|
||
curl -O https://repo.radeon.com/rocm/rocm.gpg.key | ||
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" \ | ||
| 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 | ||
|
||
sudo apt-get update | ||
sudo apt-get install -y --no-install-recommends \ | ||
build-essential \ | ||
rocm-dev |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
name: cuda | ||
|
||
on: | ||
push: | ||
pull_request: | ||
schedule: | ||
- cron: "22 22 * * 6" | ||
|
||
concurrency: | ||
group: ${{ github.ref }}-${{ github.head_ref }}-hip | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
Tests: | ||
name: HIP Tests | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Dependencies | ||
run: | | ||
.github/workflows/dependencies/dependencies_hip.sh | ||
- name: Tests | ||
run: | | ||
source /etc/profile.d/rocm.sh | ||
hipcc --version | ||
cd Tests/GPU | ||
make -j4 USE_HIP=TRUE |