Repository navigation
Build the B noise stack lazily, and fix a latent stage_stats overflow #109
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: Build | |
| on: | |
| push: | |
| pull_request: | |
| jobs: | |
| linux_cuda: | |
| name: cuda/release/linux | |
| runs-on: ubuntu-latest | |
| container: nvidia/cuda:12.9.1-devel-ubuntu22.04 | |
| env: | |
| DEBIAN_FRONTEND: noninteractive | |
| TZ: Etc/UTC | |
| strategy: | |
| matrix: | |
| variants: [0, 1, 2, 3] | |
| include: | |
| - variants: 0 | |
| biome_name: "small_biomes" | |
| large_biomes: 0 | |
| unbound: 0 | |
| - variants: 1 | |
| biome_name: "small_biomes" | |
| large_biomes: 0 | |
| unbound: 1 | |
| - variants: 2 | |
| biome_name: "large_biomes" | |
| large_biomes: 1 | |
| unbound: 0 | |
| - variants: 3 | |
| biome_name: "large_biomes" | |
| large_biomes: 1 | |
| unbound: 1 | |
| steps: | |
| - name: Install build tools | |
| run: | | |
| apt-get update | |
| apt-get install -y build-essential g++-11 | |
| - uses: actions/checkout@v7 | |
| - name: Build (Linux, biomes:${{ matrix.biomes }}, unbound:${{matrix.unbound}}) | |
| run: | | |
| make LARGE_BIOMES=${{ matrix.large_biomes }} UNBOUND=${{matrix.unbound}} ARCH=all CC=gcc-11 CXX=g++-11 | |
| - uses: actions/upload-artifact@v7 | |
| with: | |
| name: ${{ github.event.repository.name }}.${{ github.run_id }}.linux_x86.${{ matrix.biome_name }} | |
| path: ./main-* | |
| windows_cuda: | |
| name: cuda/release/windows | |
| runs-on: windows-2022 | |
| strategy: | |
| matrix: | |
| variants: [0, 1, 2, 3] | |
| include: | |
| - variants: 0 | |
| biome_name: "small_biomes" | |
| large_biomes: 0 | |
| unbound: 0 | |
| - variants: 1 | |
| biome_name: "small_biomes" | |
| large_biomes: 0 | |
| unbound: 1 | |
| - variants: 2 | |
| biome_name: "large_biomes" | |
| large_biomes: 1 | |
| unbound: 0 | |
| - variants: 3 | |
| biome_name: "large_biomes" | |
| large_biomes: 1 | |
| unbound: 1 | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - uses: ilammy/msvc-dev-cmd@v1 | |
| - name: Install MSYS2 + Make | |
| uses: msys2/setup-msys2@v2 | |
| with: | |
| update: true | |
| msystem: MINGW64 | |
| path-type: inherit | |
| install: >- | |
| make | |
| mingw-w64-x86_64-gcc | |
| - name: Install CUDA Toolkit 12.9 | |
| run: | | |
| mkdir -p "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.9" | |
| choco install unzip -y | |
| curl -O "https://developer.download.nvidia.com/compute/cuda/redist/cuda_cudart/windows-x86_64/cuda_cudart-windows-x86_64-12.9.79-archive.zip" | |
| curl -O "https://developer.download.nvidia.com/compute/cuda/redist/cuda_nvcc/windows-x86_64/cuda_nvcc-windows-x86_64-12.9.86-archive.zip" | |
| curl -O "https://developer.download.nvidia.com/compute/cuda/redist/cuda_nvrtc/windows-x86_64/cuda_nvrtc-windows-x86_64-12.9.86-archive.zip" | |
| curl -O "https://developer.download.nvidia.com/compute/cuda/redist/libcublas/windows-x86_64/libcublas-windows-x86_64-12.9.1.4-archive.zip" | |
| curl -O "https://developer.download.nvidia.com/compute/cuda/redist/cuda_nvtx/windows-x86_64/cuda_nvtx-windows-x86_64-12.9.79-archive.zip" | |
| curl -O "https://developer.download.nvidia.com/compute/cuda/redist/cuda_profiler_api/windows-x86_64/cuda_profiler_api-windows-x86_64-12.9.79-archive.zip" | |
| curl -O "https://developer.download.nvidia.com/compute/cuda/redist/visual_studio_integration/windows-x86_64/visual_studio_integration-windows-x86_64-12.9.79-archive.zip" | |
| curl -O "https://developer.download.nvidia.com/compute/cuda/redist/cuda_nvprof/windows-x86_64/cuda_nvprof-windows-x86_64-12.9.79-archive.zip" | |
| curl -O "https://developer.download.nvidia.com/compute/cuda/redist/cuda_cccl/windows-x86_64/cuda_cccl-windows-x86_64-12.9.27-archive.zip" | |
| unzip '*.zip' -d "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.9" | |
| xcopy "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.9\cuda_cudart-windows-x86_64-12.9.79-archive\*" "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.9" /E /I /H /Y | |
| xcopy "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.9\cuda_nvcc-windows-x86_64-12.9.86-archive\*" "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.9" /E /I /H /Y | |
| xcopy "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.9\cuda_nvrtc-windows-x86_64-12.9.86-archive\*" "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.9" /E /I /H /Y | |
| xcopy "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.9\libcublas-windows-x86_64-12.9.1.4-archive\*" "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.9" /E /I /H /Y | |
| xcopy "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.9\cuda_nvtx-windows-x86_64-12.9.79-archive\*" "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.9" /E /I /H /Y | |
| xcopy "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.9\cuda_profiler_api-windows-x86_64-12.9.79-archive\*" "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.9" /E /I /H /Y | |
| xcopy "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.9\visual_studio_integration-windows-x86_64-12.9.79-archive\*" "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.9" /E /I /H /Y | |
| xcopy "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.9\cuda_nvprof-windows-x86_64-12.9.79-archive\*" "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.9" /E /I /H /Y | |
| xcopy "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.9\cuda_cccl-windows-x86_64-12.9.27-archive\*" "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.9" /E /I /H /Y | |
| - name: Add CUDA to PATH | |
| run: | | |
| echo "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.9\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append | |
| echo "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.9\libnvvp" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append | |
| echo "CUDA_PATH=C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.9" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append | |
| - name: Build with Makefile (Windows, biomes:${{ matrix.biome_name }}, unbound:${{ matrix.unbound }}) | |
| shell: msys2 {0} | |
| run: | | |
| make LARGE_BIOMES=${{ matrix.large_biomes }} UNBOUND=${{matrix.unbound}} ARCH=all | |
| - uses: actions/upload-artifact@v7 | |
| with: | |
| name: ${{ github.event.repository.name }}.${{ github.run_id }}.windows_x86.${{matrix.biome_name}} | |
| path: ./main-*.exe |