Unify and simplify batch functionality: solvers #6255
Workflow file for this run
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
name: Windows-MSVC-CUDA (compile-only) | |
on: | |
push: | |
branches: | |
- 'master' | |
- 'develop' | |
- 'release/**' | |
tags: | |
- '**' | |
pull_request: | |
types: [opened,synchronize] | |
workflow_dispatch: | |
inputs: | |
debug_enabled: | |
description: 'Run the build with tmate debugging enabled by `debug_enabled` keyword (https://github.com/marketplace/actions/debugging-with-tmate)' | |
required: false | |
default: false | |
concurrency: | |
group: ${{ github.workflow }}-${{ (github.head_ref && github.ref) || github.run_id }} | |
cancel-in-progress: true | |
jobs: | |
windows_cuda: | |
if: ${{ false }} | |
strategy: | |
fail-fast: false | |
matrix: | |
config: | |
- {version: "latest", name: "cuda-latest/release/shared", "mixed": "ON"} | |
name: msvc/${{ matrix.config.name }} (only compile) | |
runs-on: [windows-2019] | |
steps: | |
- name: Checkout the latest code (shallow clone) | |
uses: actions/checkout@v4 | |
- name: setup (versioned) | |
if: matrix.config.version != 'latest' | |
run: | | |
choco install cuda --version=${{ matrix.config.version }} -y | |
- name: setup (latest) | |
if: matrix.config.version == 'latest' | |
run: | | |
choco install cuda -y | |
- name: Debug over SSH (tmate) | |
uses: mxschmitt/action-tmate@v3.5 | |
if: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.debug_enabled }} | |
with: | |
limit-access-to-actor: true | |
- name: configure | |
run: | | |
$env:ChocolateyInstall = Convert-Path "$((Get-Command choco).Path)\..\.." | |
Import-Module "$env:ChocolateyInstall\helpers\chocolateyProfile.psm1" | |
refreshenv | |
mkdir build | |
cd build | |
cmake -DGINKGO_BUILD_CUDA=ON -DGINKGO_BUILD_OMP=OFF -DGINKGO_MIXED_PRECISION=${{ matrix.config.mixed }} -DGINKGO_CUDA_ARCHITECTURES=60 .. | |
cmake --build . -j4 --config Release |