start with spack example #1
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
jobs: | |
build: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Set up Spack | |
uses: spack/setup-spack@v2 | |
with: | |
ref: develop # Spack version (examples: develop, releases/v0.21) | |
buildcache: true # Configure oci://ghcr.io/spack/github-actions-buildcache | |
color: true # Force color output (SPACK_COLOR=always) | |
path: spack # Where to clone Spack | |
- run: spack install py-jax | |
- run: spack load py-jax && python -c 'import jax.numpy as jp; print(jp.zeros(8).device)' |