Add installation guide with spack #3
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
    
  
  
    
  | # SPDX-FileCopyrightText: (C) The kokkos-fft development team, see COPYRIGHT.md file | |
| # | |
| # SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception | |
| name: CI (spack) | |
| on: | |
| pull_request: | |
| branches: [ "main" ] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| backend: | |
| - name: nvcc | |
| image: nvcc | |
| kokkos: +cuda +wrapper cuda_arch=90 | |
| kokkos_fft: cufft | |
| - name: rocm | |
| image: rocm | |
| kokkos: +rocm amdgpu_target=gfx90a | |
| kokkos_fft: hipfft | |
| steps: | |
| - name: Free Disk Space (Ubuntu) | |
| uses: jlumbroso/free-disk-space@54081f138730dfa15788a46383842cd2f914a1be # v1.3.1 | |
| with: | |
| tool-cache: true | |
| large-packages: false | |
| - name: Clone and install spack | |
| run: | | |
| docker run -v ${{ github.workspace }}:/work ghcr.io/kokkos/kokkos-fft/base_${{ matrix.backend.image }}:latest \ | |
| git clone --depth=2 https://github.com/spack/spack.git /opt/spack && \ | |
| /opt/spack/bin/spack install libelf | |
| - name: Configure and build with CMake | |
| run: | | |
| docker run -v ${{ github.workspace }}:/work ghcr.io/kokkos/kokkos-fft/base_${{ matrix.backend.image }}:latest \ | |
| bash -c "source /opt/spack/share/spack/setup-env.sh && \ | |
| spack install kokkos ${{ matrix.backend.kokkos }} && \ | |
| spack install kokkos-fft ${{ matrix.backend.kokkos_fft }} && \ | |
| cmake -B install_test/as_library/build && \ | |
| cmake --build install_test/as_library/build -j 4" |