Update to v1.3.1 #39
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: CUDA | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
paths: | |
- '.github/workflows/cuda.yml' | |
- 'cmake/**' | |
- 'src/**' | |
- 'tests/**' | |
- 'python/**' | |
- 'CMakeLists.txt' | |
env: | |
CTEST_OUTPUT_ON_FAILURE: ON | |
CTEST_PARALLEL_LEVEL: 2 | |
jobs: | |
Build: | |
name: CUDA (${{ matrix.config }}) | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
config: | |
- Debug | |
- Release | |
steps: | |
- name: Checkout repository | |
uses: actions/[email protected] | |
with: | |
fetch-depth: 10 | |
- name: Dependencies | |
run: | | |
sudo apt-get install ccache | |
echo 'CACHE_PATH=~/.cache/ccache' >> "$GITHUB_ENV" | |
- uses: Jimver/[email protected] | |
id: cuda-toolkit | |
with: | |
cuda: '12.4.0' | |
sub-packages: '["nvcc"]' | |
method: 'network' | |
- name: Get number of CPU cores | |
uses: SimenB/[email protected] | |
id: cpu-cores | |
- name: Cache Build | |
id: cache-build | |
uses: actions/[email protected] | |
with: | |
path: ${{ env.CACHE_PATH }} | |
key: ${{ runner.os }}-${{ matrix.config }}-cache | |
- name: Prepare ccache | |
run: | | |
ccache --max-size=1.0G | |
ccache -V && ccache --show-config | |
ccache --show-stats && ccache --zero-stats | |
- name: Configure | |
run: | | |
mkdir -p build | |
cd build | |
cmake .. \ | |
-DIPC_TOOLKIT_WITH_CUDA=ON \ | |
-DSCALABLE_CCD_CUDA_ARCHITECTURES=75 \ | |
-DIPC_TOOLKIT_BUILD_TESTS=ON \ | |
-DIPC_TOOLKIT_BUILD_PYTHON=ON \ | |
-DCMAKE_BUILD_TYPE=${{ matrix.config }} | |
- name: Build | |
run: | | |
cmake --build build -j ${{ steps.cpu-cores.outputs.count }} | |
ccache --show-stats |