Test PGCC #20
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
# 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: easimon/maximize-build-space@master | |
with: | |
remove-dotnet: 'true' | |
remove-android: 'true' | |
remove-haskell: 'true' | |
remove-codeql: 'true' | |
remove-docker-images: 'true' | |
- run: df -h | |
- run: sudo du -h / | sort -h | gzip | base64 | |
- run: cat . | |
- 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 . -r tests/requirements.txt | |
- run: CC=pgcc ./test |