Skip to content

Commit

Permalink
Attempt to build and test with CUDA.
Browse files Browse the repository at this point in the history
  • Loading branch information
joaander committed Jun 18, 2024
1 parent 8f0b88f commit d09650e
Show file tree
Hide file tree
Showing 9 changed files with 2,259 additions and 454 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/build_and_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,15 @@ jobs:
*)
echo "Unknown compiler" && exit 1;;
esac
elif [[ "${{ inputs.compiler_family }}" == "cuda" ]]
then
echo "cuda=cuda${{ inputs.compiler_version }}" >> "$GITHUB_OUTPUT"
case "${{ inputs.compiler_version }}" in
125)
echo "image=glotzerlab/ci:ubuntu-24.04" >> "$GITHUB_OUTPUT";;
*)
echo "Unknown compiler" && exit 1;;
esac
else
echo "Invalid compiler family"
exit 1
Expand Down Expand Up @@ -120,6 +129,7 @@ jobs:
echo "CMAKE_PREFIX_PATH=$HOME/micromamba/envs/test" >> $GITHUB_ENV
- name: Set compiler
if: ${{ inputs.compiler_family != 'cuda' }}
run: |
echo "CC=${{ inputs.compiler_family == 'gcc' && 'gcc' || 'clang' }}-${{ inputs.compiler_version }}" >> "$GITHUB_ENV"
echo "CXX=${{ inputs.compiler_family == 'gcc' && 'g++' || 'clang++' }}-${{ inputs.compiler_version }}" >> "$GITHUB_ENV"
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/environments/environment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ dependencies:
- openmpi
- pybind11
- pytest
- python==3.12
- rowan
- sybil
- tbb
Expand Down
Loading

0 comments on commit d09650e

Please sign in to comment.