-
Notifications
You must be signed in to change notification settings - Fork 1
32 lines (27 loc) · 917 Bytes
/
test-pgcc.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Install and test nvidia's PGCC with clug. Currently this compiler only
# supports Linux.
---
name: Test PGCC
on:
workflow_dispatch:
env:
FORCE_COLOR: 1
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: 3.x
# The recommended way to install PGCC is just raw wget/paste - no package
# managers.
- run: |
wget -nv https://developer.download.nvidia.com/hpc-sdk/21.9/nvhpc_2021_219_Linux_x86_64_cuda_11.4.tar.gz
tar xpzf nvhpc_2021_219_Linux_x86_64_cuda_11.4.tar.gz
sudo nvhpc_2021_219_Linux_x86_64_cuda_11.4/install
echo PATH=$PATH:/opt/nvidia/hpc_sdk/Linux_x86_64/21.9/compilers/bin/ >> $GITHUB_ENV
working-directory: /opt/
- run: pip install setuptools wheel
- run: pip install -e .[test]
- run: CC=pgcc ./test