Skip to content

Commit f7a9a1d

Browse files
authored
Add kokkos-kernels to fedora CI image (#9)
* Add kokkos-kernels to image * Try with automated version deduction
1 parent 4c6f13c commit f7a9a1d

3 files changed

Lines changed: 18 additions & 0 deletions

File tree

ci-fedora.dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@ RUN dnf -y update && \
3333
echo "module load mpi/mpich-x86_64" > /etc/profile.d/mpich.sh
3434

3535
# Run interactively using a bash login shell
36+
COPY --chown=root:root kokkos-kernels/99-kokkos-kernels-env.sh /etc/profile.d/
37+
COPY kokkos-kernels/kokkos-kernels-install.sh kokkos-kernels-install.sh
38+
RUN ./kokkos-kernels-install.sh && rm kokkos-kernels-install.sh
39+
3640
COPY --chown=root:root ginkgo/99-ginkgo-env.sh /etc/profile.d/
3741
COPY ginkgo/ginkgo-install.sh ginkgo-install.sh
3842
RUN ./ginkgo-install.sh && rm ginkgo-install.sh
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Copy this file into /etc/profile.d/
2+
3+
export KokkosKernels_DIR=/kokkos-kernels/build
4+
5+
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$KokkosKernels_DIR/lib
6+
export CPATH=$CPATH:$KokkosKernels_DIR/include
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# This script installs Kokkos-Kernels
2+
VERSION=$(rpm -q --qf '%{VERSION}' kokkos-devel)
3+
echo "Installing Kokkos-Kernels version ${VERSION}"
4+
5+
wget -c https://github.com/kokkos/kokkos-kernels/archive/refs/tags/$VERSION.zip
6+
unzip $VERSION.zip && mv kokkos-kernels-$VERSION kokkos-kernels
7+
cd kokkos-kernels && mkdir build && cd build
8+
cmake -DBUILD_TESTING="OFF" -DBUILD_SHARED_LIBS="ON" .. && make -j 4

0 commit comments

Comments
 (0)