PERF: Cache GPU context, plan, and buffers across transforms; add leak test and export VKFFT_BACKEND #104
Workflow file for this run
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
| name: Notebook tests | |
| on: | |
| workflow_dispatch: | |
| pull_request: | |
| types: [opened, synchronize, reopened, labeled] | |
| jobs: | |
| nbmake: | |
| if: github.event_name == 'workflow_dispatch' || contains(github.event.pull_request.labels.*.name, 'gpu-ci') | |
| runs-on: [self-hosted, notebook-gpu] | |
| name: Test notebooks with nbmake | |
| strategy: | |
| max-parallel: 3 | |
| steps: | |
| - name: Check OpenCL Devices | |
| run: | | |
| clinfo | |
| if [ $(clinfo | grep "Number of devices" | awk '{print $4}') == "0" ]; then echo "Could not find OpenCL devices" && exit 1; fi | |
| shell: bash | |
| - uses: actions/checkout@v5 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.10' | |
| - name: Install test dependencies | |
| run: | | |
| python3 --version | |
| python3 -m pip install --upgrade pip | |
| python3 -m pip install itk-vkfft tqdm pytest nbmake | |
| python3 -m pip list | |
| python3 -c "import itk; itk.auto_progress(2); print(itk.VkForwardFFTImageFilter.values())" | |
| - name: Test notebooks | |
| run: | | |
| pytest --nbmake --nbmake-timeout=3000 example/*ipynb |