From 5200c0eab4949a49f983e528a0601c5062f22895 Mon Sep 17 00:00:00 2001 From: Yuuichi Asahi Date: Tue, 23 Sep 2025 03:04:52 +0900 Subject: [PATCH 01/12] fix conflicts --- .github/workflows/spack-test.yaml | 5 +++++ docker/rocm/Dockerfile | 12 +++++------ spack-configs/rocm/packages.yaml | 34 +++++++++++++++++++++++++++++++ 3 files changed, 45 insertions(+), 6 deletions(-) create mode 100644 spack-configs/rocm/packages.yaml diff --git a/.github/workflows/spack-test.yaml b/.github/workflows/spack-test.yaml index 742235cd..4603ce2e 100644 --- a/.github/workflows/spack-test.yaml +++ b/.github/workflows/spack-test.yaml @@ -18,6 +18,11 @@ jobs: image: gcc kokkos: +cuda +wrapper cuda_arch=90 kokkos_fft: device_backend=cufft + spack_path: "" + - name: rocm + image: rocm + kokkos: +rocm amdgpu_target=gfx90a + spack_path: spack-configs/rocm steps: - name: Free Disk Space (Ubuntu) diff --git a/docker/rocm/Dockerfile b/docker/rocm/Dockerfile index b87c2d94..d75a6633 100644 --- a/docker/rocm/Dockerfile +++ b/docker/rocm/Dockerfile @@ -16,23 +16,23 @@ RUN apt-get update && apt-get install -y \ hipfft \ rocfft \ libfftw3-dev \ + python3 \ $ADDITIONAL_PACKAGES \ && \ apt-get clean && \ rm -rf /var/lib/apt/lists/* -ENV FFTWDIR "/usr" - -ENV PATH=/opt/rocm/bin:$PATH -ENV LD_LIBRARY_PATH /opt/rocm/hipfft/lib:$LD_LIBRARY_PATH -ENV CMAKE_PREFIX_PATH /opt/rocm/hip/:/opt/rocm/:$CMAKE_PREFIX_PATH +ENV FFTWDIR=/usr \ + CMAKE_DIR=/opt/cmake \ + PATH=/opt/rocm/bin:$PATH \ + LD_LIBRARY_PATH=/opt/rocm/hipfft/lib:$LD_LIBRARY_PATH \ + CMAKE_PREFIX_PATH=/opt/rocm/hip/:/opt/rocm/:$CMAKE_PREFIX_PATH RUN git config --global --add safe.directory "*" # Install newer CMake manually ARG CMAKE_VERSION=3.23.2 -ENV CMAKE_DIR=/opt/cmake RUN CMAKE_URL=https://github.com/Kitware/CMake/releases/download/v${CMAKE_VERSION} && \ CMAKE_SCRIPT=cmake-${CMAKE_VERSION}-linux-x86_64.sh && \ CMAKE_SHA256=cmake-${CMAKE_VERSION}-SHA-256.txt && \ diff --git a/spack-configs/rocm/packages.yaml b/spack-configs/rocm/packages.yaml new file mode 100644 index 00000000..a0812b0f --- /dev/null +++ b/spack-configs/rocm/packages.yaml @@ -0,0 +1,34 @@ +# SPDX-FileCopyrightText: (C) The kokkos-fft development team, see COPYRIGHT.md file +# +# SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception + +packages: + llvm-amdgpu: + buildable: false + externals: + - spec: llvm-amdgpu@6.2.0 + prefix: /opt/rocm + extra_attributes: + compilers: + c: /opt/rocm/bin/amdclang + cxx: /opt/rocm/bin/amdclang++ + hip: + buildable: false + externals: + - spec: hip@6.2.0 + prefix: /opt/rocm-6.2.0 + hipfft: + buildable: false + externals: + - spec: hipfft@6.2.0 + prefix: /opt/rocm-6.2.0 + rocfft: + buildable: false + externals: + - spec: rocfft@6.2.0 + prefix: /opt/rocm-6.2.0 + cmake: + buildable: false + externals: + - spec: cmake@3.23.2 + prefix: /opt/cmake From 7d22a0119e5b5aaa4cd1e143b9424ced37f0dee9 Mon Sep 17 00:00:00 2001 From: Yuuichi Asahi Date: Wed, 3 Sep 2025 15:53:03 +0900 Subject: [PATCH 02/12] Install gfortran in rocm container --- docker/rocm/Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/docker/rocm/Dockerfile b/docker/rocm/Dockerfile index d75a6633..05c51e39 100644 --- a/docker/rocm/Dockerfile +++ b/docker/rocm/Dockerfile @@ -17,6 +17,7 @@ RUN apt-get update && apt-get install -y \ rocfft \ libfftw3-dev \ python3 \ + gfortran \ $ADDITIONAL_PACKAGES \ && \ apt-get clean && \ From 203ae1f1e8690cc59bd3e71be1a07622f9e70d57 Mon Sep 17 00:00:00 2001 From: Yuuichi Asahi Date: Tue, 23 Sep 2025 04:21:29 +0900 Subject: [PATCH 03/12] fix: conflict --- .github/workflows/spack-test.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/spack-test.yaml b/.github/workflows/spack-test.yaml index 4603ce2e..b2486c20 100644 --- a/.github/workflows/spack-test.yaml +++ b/.github/workflows/spack-test.yaml @@ -43,6 +43,7 @@ jobs: run: | docker run -v ${{ github.workspace }}:/work ghcr.io/kokkos/kokkos-fft/base_${{ matrix.backend.image }}:latest \ bash -c "source spack/share/spack/setup-env.sh && \ + export SPACK_USER_CONFIG_PATH=${{ matrix.backend.spack_path }} && \ spack spec kokkos-fft ${{ matrix.backend.kokkos_fft }} +tests ^kokkos ${{ matrix.backend.kokkos }} && \ spack install kokkos-fft ${{ matrix.backend.kokkos_fft }} +tests ^kokkos ${{ matrix.backend.kokkos }} && \ spack load kokkos kokkos-fft && \ From 04892a3644f4216bb3407a09a18369e04a9dabb7 Mon Sep 17 00:00:00 2001 From: Yuuichi Asahi Date: Thu, 4 Sep 2025 01:12:58 +0900 Subject: [PATCH 04/12] Add more external packages for rocm env --- spack-configs/rocm/packages.yaml | 100 +++++++++++++++++++++++++++++++ 1 file changed, 100 insertions(+) diff --git a/spack-configs/rocm/packages.yaml b/spack-configs/rocm/packages.yaml index a0812b0f..77cc72fb 100644 --- a/spack-configs/rocm/packages.yaml +++ b/spack-configs/rocm/packages.yaml @@ -22,11 +22,111 @@ packages: externals: - spec: hipfft@6.2.0 prefix: /opt/rocm-6.2.0 + hipblas: + buildable: false + externals: + - spec: hipblas@6.2.0 + prefix: /opt/rocm-6.2.0 + hipcub: + buildable: false + externals: + - spec: hipcub@6.2.0 + prefix: /opt/rocm-6.2.0 + hipfort: + buildable: false + externals: + - spec: hipfort@6.2.0 + prefix: /opt/rocm-6.2.0 + hipify-clang: + buildable: false + externals: + - spec: hipify-clang@6.2.0 + prefix: /opt/rocm-6.2.0 + hiprand: + buildable: false + externals: + - spec: hiprand@6.2.0 + prefix: /opt/rocm-6.2.0 + hipsolver: + buildable: false + externals: + - spec: hipsolver@6.2.0 + prefix: /opt/rocm-6.2.0 + hipsparse: + buildable: false + externals: + - spec: hipsparse@6.2.0 + prefix: /opt/rocm-6.2.0 + hsa-rocr-dev: + buildable: false + externals: + - spec: hsa-rocr-dev@6.2.0 + prefix: /opt/rocm-6.2.0 + hsakmt-roct: + buildable: false + externals: + - spec: hsakmt-roct@6.2.0 + prefix: /opt/rocm-6.2.0 + miopen-hip: + buildable: false + externals: + - spec: miopen-hip@6.2.0 + prefix: /opt/rocm-6.2.0 + rccl: + buildable: false + externals: + - spec: rccl@6.2.0 + prefix: /opt/rocm-6.2.0 + rocalution: + buildable: false + externals: + - spec: rocalution@6.2.0 + prefix: /opt/rocm-6.2.0 rocfft: buildable: false externals: - spec: rocfft@6.2.0 prefix: /opt/rocm-6.2.0 + rocprim: + buildable: false + externals: + - spec: rocprim@6.2.0 + prefix: /opt/rocm-6.2.0 + rocblas: + buildable: false + externals: + - spec: rocblas@6.2.0 + prefix: /opt/rocm-6.2.0 + roctracer-dev: + buildable: false + externals: + - spec: roctracer-dev@6.2.0 + prefix: /opt/rocm-6.2.0 + rocsparse: + buildable: false + externals: + - spec: rocsparse@6.2.0 + prefix: /opt/rocm-6.2.0 + rocsolver: + buildable: false + externals: + - spec: rocsolver@6.2.0 + prefix: /opt/rocm-6.2.0 + rocrand: + buildable: false + externals: + - spec: rocrand@6.2.0 + prefix: /opt/rocm-6.2.0 + rocprofiler-dev: + buildable: false + externals: + - spec: rocprofiler-dev@6.2.0 + prefix: /opt/rocm-6.2.0 + python: + buildable: false + externals: + - spec: python@3.12.3+bz2+crypt+ctypes+dbm+lzma+pyexpat~pythoncmd+readline+sqlite3+ssl~tkinter+uuid+zlib + prefix: /usr cmake: buildable: false externals: From 21ecf3f7e88e1634b6940ab3c78de2a9741153a6 Mon Sep 17 00:00:00 2001 From: Yuuichi Asahi Date: Thu, 4 Sep 2025 17:32:02 +0900 Subject: [PATCH 05/12] try kokkos-fft new recipe --- .github/workflows/spack-test.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/spack-test.yaml b/.github/workflows/spack-test.yaml index b2486c20..d90d9961 100644 --- a/.github/workflows/spack-test.yaml +++ b/.github/workflows/spack-test.yaml @@ -39,10 +39,17 @@ jobs: docker run -v ${{ github.workspace }}:/work ghcr.io/kokkos/kokkos-fft/base_${{ matrix.backend.image }}:latest \ bash -c "git clone --depth=2 --branch=v1.0.1 https://github.com/spack/spack.git" + ### For debug + - name: Clone and install spack packages + run: | + docker run -v ${{ github.workspace }}:/work ghcr.io/kokkos/kokkos-fft/base_${{ matrix.backend.image }}:latest \ + bash -c "git clone --depth=100 --branch=update-kokkos-fft-recipe https://github.com/yasahi-hpc/spack-packages.git ~/spack-packages" + - 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 spack/share/spack/setup-env.sh && \ + spack repo set --destination ~/spack-packages builtin && \ export SPACK_USER_CONFIG_PATH=${{ matrix.backend.spack_path }} && \ spack spec kokkos-fft ${{ matrix.backend.kokkos_fft }} +tests ^kokkos ${{ matrix.backend.kokkos }} && \ spack install kokkos-fft ${{ matrix.backend.kokkos_fft }} +tests ^kokkos ${{ matrix.backend.kokkos }} && \ From e2ecd120b4edffb3b5c9b3fb16c282b7cb590ab6 Mon Sep 17 00:00:00 2001 From: Yuuichi Asahi Date: Thu, 4 Sep 2025 18:15:55 +0900 Subject: [PATCH 06/12] debug rocm recipe --- .github/workflows/spack-test.yaml | 11 ++++++----- spack-configs/repos.yaml | 16 ++++++++++++++++ 2 files changed, 22 insertions(+), 5 deletions(-) create mode 100644 spack-configs/repos.yaml diff --git a/.github/workflows/spack-test.yaml b/.github/workflows/spack-test.yaml index d90d9961..0ef075c1 100644 --- a/.github/workflows/spack-test.yaml +++ b/.github/workflows/spack-test.yaml @@ -40,16 +40,17 @@ jobs: bash -c "git clone --depth=2 --branch=v1.0.1 https://github.com/spack/spack.git" ### For debug - - name: Clone and install spack packages - run: | - docker run -v ${{ github.workspace }}:/work ghcr.io/kokkos/kokkos-fft/base_${{ matrix.backend.image }}:latest \ - bash -c "git clone --depth=100 --branch=update-kokkos-fft-recipe https://github.com/yasahi-hpc/spack-packages.git ~/spack-packages" + ###- name: Clone and install spack packages + ### run: | + ### docker run -v ${{ github.workspace }}:/work ghcr.io/kokkos/kokkos-fft/base_${{ matrix.backend.image }}:latest \ + ### bash -c "git clone --depth=100 --branch=update-kokkos-fft-recipe https://github.com/yasahi-hpc/spack-packages.git ~/spack-packages" - 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 spack/share/spack/setup-env.sh && \ - spack repo set --destination ~/spack-packages builtin && \ + cp spack-configs/repos.yaml spack/etc/spack/repos.yaml && \ + spack repo update && \ export SPACK_USER_CONFIG_PATH=${{ matrix.backend.spack_path }} && \ spack spec kokkos-fft ${{ matrix.backend.kokkos_fft }} +tests ^kokkos ${{ matrix.backend.kokkos }} && \ spack install kokkos-fft ${{ matrix.backend.kokkos_fft }} +tests ^kokkos ${{ matrix.backend.kokkos }} && \ diff --git a/spack-configs/repos.yaml b/spack-configs/repos.yaml new file mode 100644 index 00000000..90eec60f --- /dev/null +++ b/spack-configs/repos.yaml @@ -0,0 +1,16 @@ +# ------------------------------------------------------------------------- +# This is the default spack repository configuration. It includes the +# builtin spack package repository. +# +# Users can override these settings by editing the following files. +# +# Per-spack-instance settings (overrides defaults): +# $SPACK_ROOT/etc/spack/repos.yaml +# +# Per-user settings (overrides default and site settings): +# ~/.spack/repos.yaml +# ------------------------------------------------------------------------- +repos: + builtin: + git: https://github.com/yasahi-hpc/spack-packages.git + branch: update-kokkos-fft-recipe \ No newline at end of file From 297e11aeabeb66459c5c8b2e9112c51d57df2d0b Mon Sep 17 00:00:00 2001 From: Yuuichi Asahi Date: Mon, 8 Sep 2025 15:38:37 +0900 Subject: [PATCH 07/12] use new kokkos-fft recipe --- .github/workflows/spack-test.yaml | 8 -------- spack-configs/repos.yaml | 16 ---------------- 2 files changed, 24 deletions(-) delete mode 100644 spack-configs/repos.yaml diff --git a/.github/workflows/spack-test.yaml b/.github/workflows/spack-test.yaml index 0ef075c1..b2486c20 100644 --- a/.github/workflows/spack-test.yaml +++ b/.github/workflows/spack-test.yaml @@ -39,18 +39,10 @@ jobs: docker run -v ${{ github.workspace }}:/work ghcr.io/kokkos/kokkos-fft/base_${{ matrix.backend.image }}:latest \ bash -c "git clone --depth=2 --branch=v1.0.1 https://github.com/spack/spack.git" - ### For debug - ###- name: Clone and install spack packages - ### run: | - ### docker run -v ${{ github.workspace }}:/work ghcr.io/kokkos/kokkos-fft/base_${{ matrix.backend.image }}:latest \ - ### bash -c "git clone --depth=100 --branch=update-kokkos-fft-recipe https://github.com/yasahi-hpc/spack-packages.git ~/spack-packages" - - 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 spack/share/spack/setup-env.sh && \ - cp spack-configs/repos.yaml spack/etc/spack/repos.yaml && \ - spack repo update && \ export SPACK_USER_CONFIG_PATH=${{ matrix.backend.spack_path }} && \ spack spec kokkos-fft ${{ matrix.backend.kokkos_fft }} +tests ^kokkos ${{ matrix.backend.kokkos }} && \ spack install kokkos-fft ${{ matrix.backend.kokkos_fft }} +tests ^kokkos ${{ matrix.backend.kokkos }} && \ diff --git a/spack-configs/repos.yaml b/spack-configs/repos.yaml deleted file mode 100644 index 90eec60f..00000000 --- a/spack-configs/repos.yaml +++ /dev/null @@ -1,16 +0,0 @@ -# ------------------------------------------------------------------------- -# This is the default spack repository configuration. It includes the -# builtin spack package repository. -# -# Users can override these settings by editing the following files. -# -# Per-spack-instance settings (overrides defaults): -# $SPACK_ROOT/etc/spack/repos.yaml -# -# Per-user settings (overrides default and site settings): -# ~/.spack/repos.yaml -# ------------------------------------------------------------------------- -repos: - builtin: - git: https://github.com/yasahi-hpc/spack-packages.git - branch: update-kokkos-fft-recipe \ No newline at end of file From 9bc8f931f52deb78eb340b2b2da6628605c39e56 Mon Sep 17 00:00:00 2001 From: Yuuichi Asahi Date: Mon, 8 Sep 2025 16:24:04 +0900 Subject: [PATCH 08/12] use official develop recipe --- .github/workflows/spack-test.yaml | 2 ++ spack-configs/repos.yaml | 22 ++++++++++++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 spack-configs/repos.yaml diff --git a/.github/workflows/spack-test.yaml b/.github/workflows/spack-test.yaml index b2486c20..9a664a5d 100644 --- a/.github/workflows/spack-test.yaml +++ b/.github/workflows/spack-test.yaml @@ -43,6 +43,8 @@ jobs: run: | docker run -v ${{ github.workspace }}:/work ghcr.io/kokkos/kokkos-fft/base_${{ matrix.backend.image }}:latest \ bash -c "source spack/share/spack/setup-env.sh && \ + cp spack-configs/repos.yaml spack/etc/spack/repos.yaml && \ + spack repo update && \ export SPACK_USER_CONFIG_PATH=${{ matrix.backend.spack_path }} && \ spack spec kokkos-fft ${{ matrix.backend.kokkos_fft }} +tests ^kokkos ${{ matrix.backend.kokkos }} && \ spack install kokkos-fft ${{ matrix.backend.kokkos_fft }} +tests ^kokkos ${{ matrix.backend.kokkos }} && \ diff --git a/spack-configs/repos.yaml b/spack-configs/repos.yaml new file mode 100644 index 00000000..eccff464 --- /dev/null +++ b/spack-configs/repos.yaml @@ -0,0 +1,22 @@ +# SPDX-FileCopyrightText: (C) The kokkos-fft development team, see COPYRIGHT.md file +# +# SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception +# +# ------------------------------------------------------------------------- +# This is the default spack repository configuration. It includes the +# builtin spack package repository. +# +# Users can override these settings by editing the following files. +# +# Per-spack-instance settings (overrides defaults): + # $SPACK_ROOT/etc/spack/repos.yaml + + +# +# Per-user settings (overrides default and site settings): +# ~/.spack/repos.yaml +# ------------------------------------------------------------------------- +repos: + builtin: + git: https://github.com/spack/spack-packages.git + branch: develop From 08b448b99813994453059655201d70e9a03eb682 Mon Sep 17 00:00:00 2001 From: Yuuichi Asahi Date: Tue, 23 Sep 2025 04:22:42 +0900 Subject: [PATCH 09/12] fix: conflict --- .github/workflows/spack-test.yaml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/spack-test.yaml b/.github/workflows/spack-test.yaml index 9a664a5d..27a26077 100644 --- a/.github/workflows/spack-test.yaml +++ b/.github/workflows/spack-test.yaml @@ -16,11 +16,13 @@ jobs: backend: - name: nvcc image: gcc + compiler: nvcc_wrapper kokkos: +cuda +wrapper cuda_arch=90 kokkos_fft: device_backend=cufft spack_path: "" - name: rocm image: rocm + compiler: hipcc kokkos: +rocm amdgpu_target=gfx90a spack_path: spack-configs/rocm @@ -37,18 +39,20 @@ jobs: - name: Clone and install spack run: | docker run -v ${{ github.workspace }}:/work ghcr.io/kokkos/kokkos-fft/base_${{ matrix.backend.image }}:latest \ - bash -c "git clone --depth=2 --branch=v1.0.1 https://github.com/spack/spack.git" + bash -c "git clone --depth=2 --branch=v1.0.2 https://github.com/spack/spack.git" - 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 spack/share/spack/setup-env.sh && \ - cp spack-configs/repos.yaml spack/etc/spack/repos.yaml && \ - spack repo update && \ export SPACK_USER_CONFIG_PATH=${{ matrix.backend.spack_path }} && \ spack spec kokkos-fft ${{ matrix.backend.kokkos_fft }} +tests ^kokkos ${{ matrix.backend.kokkos }} && \ spack install kokkos-fft ${{ matrix.backend.kokkos_fft }} +tests ^kokkos ${{ matrix.backend.kokkos }} && \ spack load kokkos kokkos-fft && \ cd install_test/as_library && \ +<<<<<<< HEAD cmake -B build && \ +======= + cmake -D CMAKE_CXX_COMPILER=${{ matrix.backend.compiler }} -B build && \ +>>>>>>> 71301f3 (update spack-test for rocm using newer one) cmake --build build -j 4" From 6b85b8a61daaf4ee91f4cd443ecb49123ebb8cf1 Mon Sep 17 00:00:00 2001 From: Yuuichi Asahi Date: Tue, 23 Sep 2025 03:03:08 +0900 Subject: [PATCH 10/12] remove unused repos.yaml --- spack-configs/repos.yaml | 22 ---------------------- 1 file changed, 22 deletions(-) delete mode 100644 spack-configs/repos.yaml diff --git a/spack-configs/repos.yaml b/spack-configs/repos.yaml deleted file mode 100644 index eccff464..00000000 --- a/spack-configs/repos.yaml +++ /dev/null @@ -1,22 +0,0 @@ -# SPDX-FileCopyrightText: (C) The kokkos-fft development team, see COPYRIGHT.md file -# -# SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception -# -# ------------------------------------------------------------------------- -# This is the default spack repository configuration. It includes the -# builtin spack package repository. -# -# Users can override these settings by editing the following files. -# -# Per-spack-instance settings (overrides defaults): - # $SPACK_ROOT/etc/spack/repos.yaml - - -# -# Per-user settings (overrides default and site settings): -# ~/.spack/repos.yaml -# ------------------------------------------------------------------------- -repos: - builtin: - git: https://github.com/spack/spack-packages.git - branch: develop From db2fd4ebed0775a4dd2579f5e330a6fa9b8e12d3 Mon Sep 17 00:00:00 2001 From: Yuuichi Asahi Date: Tue, 23 Sep 2025 04:25:49 +0900 Subject: [PATCH 11/12] fix: conflict --- .github/workflows/spack-test.yaml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/.github/workflows/spack-test.yaml b/.github/workflows/spack-test.yaml index 27a26077..a0615b1e 100644 --- a/.github/workflows/spack-test.yaml +++ b/.github/workflows/spack-test.yaml @@ -50,9 +50,5 @@ jobs: spack install kokkos-fft ${{ matrix.backend.kokkos_fft }} +tests ^kokkos ${{ matrix.backend.kokkos }} && \ spack load kokkos kokkos-fft && \ cd install_test/as_library && \ -<<<<<<< HEAD - cmake -B build && \ -======= cmake -D CMAKE_CXX_COMPILER=${{ matrix.backend.compiler }} -B build && \ ->>>>>>> 71301f3 (update spack-test for rocm using newer one) cmake --build build -j 4" From 67794bf8316550d2720e806d4b5915aaba89e53e Mon Sep 17 00:00:00 2001 From: Yuuichi Asahi Date: Tue, 23 Sep 2025 04:46:10 +0900 Subject: [PATCH 12/12] find compiler --- .github/workflows/spack-test.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/spack-test.yaml b/.github/workflows/spack-test.yaml index a0615b1e..c631f910 100644 --- a/.github/workflows/spack-test.yaml +++ b/.github/workflows/spack-test.yaml @@ -24,6 +24,7 @@ jobs: image: rocm compiler: hipcc kokkos: +rocm amdgpu_target=gfx90a + kokkos_fft: device_backend=hipfft spack_path: spack-configs/rocm steps: @@ -46,6 +47,7 @@ jobs: docker run -v ${{ github.workspace }}:/work ghcr.io/kokkos/kokkos-fft/base_${{ matrix.backend.image }}:latest \ bash -c "source spack/share/spack/setup-env.sh && \ export SPACK_USER_CONFIG_PATH=${{ matrix.backend.spack_path }} && \ + spack compiler find && \ spack spec kokkos-fft ${{ matrix.backend.kokkos_fft }} +tests ^kokkos ${{ matrix.backend.kokkos }} && \ spack install kokkos-fft ${{ matrix.backend.kokkos_fft }} +tests ^kokkos ${{ matrix.backend.kokkos }} && \ spack load kokkos kokkos-fft && \