Getting Started #52
This file contains hidden or 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
| # File: getting-started.yml | |
| # Author: Ryoichi Ando ([email protected]) | |
| # License: Apache v2.0 | |
| name: Getting Started | |
| on: | |
| workflow_dispatch: | |
| jobs: | |
| headless: | |
| runs-on: ppf-contact-solver-NVIDIA | |
| timeout-minutes: 60 | |
| steps: | |
| - name: check out repo | |
| uses: actions/checkout@v3 | |
| - name: install NVIDIA driver and CUDA toolkit | |
| run: | | |
| curl -fSsL -O https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/cuda-keyring_1.1-1_all.deb | |
| sudo dpkg -i cuda-keyring_1.1-1_all.deb | |
| sudo apt-get update | |
| sudo apt-get -y install cuda-toolkit-12-8 | |
| - name: check GPU | |
| run: nvidia-smi | |
| - name: warmup | |
| run: python3 warmup.py | |
| - name: build | |
| run: ~/.cargo/bin/cargo build --release | |
| - name: run headless | |
| run: | | |
| export PYTHONPATH=$PWD | |
| ~/.local/share/ppf-cts/venv/bin/python examples/headless.py |