Skip to content

Commit

Permalink
kokkos
Browse files Browse the repository at this point in the history
  • Loading branch information
jngrad committed Apr 16, 2024
1 parent 00beea8 commit 201045c
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 4 deletions.
1 change: 1 addition & 0 deletions docker/Dockerfile-fedora
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ RUN dnf -y install \
python3 \
python3-devel \
python3-Cython \
python3-lxml \
python3-numpy \
python3-scipy \
python3-pip \
Expand Down
6 changes: 4 additions & 2 deletions docker/Dockerfile-ubuntu-24.04
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
FROM ubuntu:noble
COPY install-pfft.sh /tmp
COPY install-scafacos.sh /tmp
COPY install-kokkos.sh /tmp
RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y \
apt-utils \
Expand Down Expand Up @@ -80,8 +81,9 @@ RUN apt-get update && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*

RUN bash /tmp/install-pfft.sh && rm /tmp/install-pfft.sh && \
bash /tmp/install-scafacos.sh && rm /tmp/install-scafacos.sh && \
RUN sh /tmp/install-pfft.sh && rm /tmp/install-pfft.sh && \
sh /tmp/install-scafacos.sh && rm /tmp/install-scafacos.sh && \
sh /tmp/install-kokkos.sh && rm /tmp/install-kokkos.sh && \
ldconfig

ENV NVIDIA_VISIBLE_DEVICES all
Expand Down
15 changes: 15 additions & 0 deletions docker/install-kokkos.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/bin/sh

set -e

cd /tmp

git clone -b 4.3.00 https://github.com/kokkos/kokkos
cd kokkos/
mkdir build
cd build/
cmake .. -D Kokkos_ENABLE_CUDA=OFF -DKokkos_ENABLE_OPENMP=ON
make -j $(nproc) install
cd
rm -r /tmp/kokkos
ldconfig
2 changes: 1 addition & 1 deletion docker/install-pfft.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/sh

set -e

Expand Down
2 changes: 1 addition & 1 deletion docker/install-scafacos.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/sh

set -e

Expand Down

0 comments on commit 201045c

Please sign in to comment.