Skip to content

Commit

Permalink
clone kokkos into github.workspace
Browse files Browse the repository at this point in the history
trying to avoid reusing a prior script artifacts (directories, etc.)
  • Loading branch information
cwsmith committed Mar 7, 2024
1 parent e75cba7 commit 24a26e7
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions .github/workflows/pr_comment_trigger_self_hosted.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ jobs:
with:
ref: refs/pull/${{ github.event.issue.number }}/head
submodules: recursive
path: 'omegah' #under $GITHUB_WORKSPACE

- name: build
id: build
Expand All @@ -36,16 +37,16 @@ jobs:
module load cuda/12.1.1-zxa4msk
module load simmetrix-simmodsuite/2023.1-230907dev-jquex4z
set -e
cd ${{github.workspace}}/..
root=$PWD
echo "github.workspace ${{github.workspace}}"
# kokkos
git clone [email protected]:kokkos/kokkos.git
kkbdir=$root/build-kokkos
cmake -S kokkos -B $kkbdir \
git clone [email protected]:kokkos/kokkos.git ${{github.workspace}}/kokkos
kkbdir=${{github.workspace}}/build-kokkos
cmake -S ${{github.workspace}}/kokkos -B $kkbdir \
-DCMAKE_BUILD_TYPE=Release \
-DBUILD_SHARED_LIBS=ON \
-DCMAKE_CXX_COMPILER=$root/kokkos/bin/nvcc_wrapper \
-DCMAKE_CXX_COMPILER=${{github.workspace}}/kokkos/bin/nvcc_wrapper \
-DKokkos_ARCH_AMPERE80=ON \
-DKokkos_ENABLE_SERIAL=ON \
-DKokkos_ENABLE_OPENMP=off \
Expand All @@ -56,8 +57,8 @@ jobs:
cmake --build $kkbdir --target install -j 4
# omegah
bdir=$root/build-omegah
cmake -S ${{github.workspace}} -B $bdir \
bdir=${{github.workspace}}/build-omegah
cmake -S ${{github.workspace}}/omegah -B $bdir \
-DCMAKE_INSTALL_PREFIX=$bdir/install \
-DCMAKE_BUILD_TYPE=Release \
-DBUILD_TESTING=on \
Expand Down

0 comments on commit 24a26e7

Please sign in to comment.