Skip to content

Commit

Permalink
Add Ginkgo
Browse files Browse the repository at this point in the history
  • Loading branch information
tpadioleau committed Oct 28, 2023
1 parent fdda8a9 commit 2796290
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
15 changes: 15 additions & 0 deletions docker/latest/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ RUN chmod +x /bin/bash_run \
cmake \
git \
libfftw3-dev \
libhwloc-dev \
libpdi-dev \
pdidev-archive-keyring \
pkg-config \
Expand All @@ -56,6 +57,20 @@ RUN chmod +x /bin/bash_run \
apt-get install -y --no-install-recommends \
rocm-hip-sdk \
;; esac \
&& git clone -b v1.6.0 https://github.com/ginkgo-project/ginkgo.git \
&& cd ginkgo \
&& case "${BACKEND}" in \
"cpu") \
cmake -S . -B build -DCMAKE_BUILD_TYPE=RelWithDebInfo -DGINKGO_BUILD_OMP=ON -DGINKGO_BUILD_TESTS=OFF -DGINKGO_BUILD_EXAMPLES=OFF -DGINKGO_BUILD_BENCHMARKS=OFF \
;; "cuda") \
cmake -S . -B build -DCMAKE_C_COMPILER=gcc-10 -DCMAKE_CXX_COMPILER=g++-10 -DCMAKE_CUDA_HOST_COMPILER=g++-10 -DCMAKE_BUILD_TYPE=RelWithDebInfo -DGINKGO_CUDA_ARCHITECTURES=70 -DGINKGO_BUILD_CUDA=ON -DGINKGO_BUILD_TESTS=OFF -DGINKGO_BUILD_EXAMPLES=OFF -DGINKGO_BUILD_BENCHMARKS=OFF \
;; "hip") \
cmake -S . -B build -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_HIP_ARCHITECTURES=gfx90a -DGINKGO_BUILD_HIP=ON -DGINKGO_BUILD_TESTS=OFF -DGINKGO_BUILD_EXAMPLES=OFF -DGINKGO_BUILD_BENCHMARKS=OFF \
;; esac \
&& cmake --build build \
&& cmake --install build \
&& cd .. \
&& rm -rf ginkgo \
&& apt-get purge -y \
apt-transport-https \
apt-utils \
Expand Down
13 changes: 13 additions & 0 deletions docker/oldest/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ RUN chmod +x /bin/bash_run \
git \
libelf-dev \
libfftw3-dev \
libhwloc-dev \
libnuma1 \
libpdi-dev \
pdidev-archive-keyring \
Expand All @@ -51,6 +52,18 @@ RUN chmod +x /bin/bash_run \
apt-get install -y --no-install-recommends \
rocm-hip-sdk \
;; esac \
&& git clone -b v1.6.0 https://github.com/ginkgo-project/ginkgo.git \
&& cd ginkgo \
&& case "${BACKEND}" in \
"cpu") \
cmake -S . -B build -DCMAKE_BUILD_TYPE=RelWithDebInfo -DGINKGO_BUILD_OMP=ON -DGINKGO_BUILD_TESTS=OFF -DGINKGO_BUILD_EXAMPLES=OFF -DGINKGO_BUILD_BENCHMARKS=OFF \
;; "hip") \
cmake -S . -B build -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_HIP_ARCHITECTURES=gfx90a -DGINKGO_BUILD_HIP=ON -DGINKGO_BUILD_TESTS=OFF -DGINKGO_BUILD_EXAMPLES=OFF -DGINKGO_BUILD_BENCHMARKS=OFF \
;; esac \
&& cmake --build build \
&& cmake --install build \
&& cd .. \
&& rm -rf ginkgo \
&& apt-get purge -y \
apt-transport-https \
apt-utils \
Expand Down

0 comments on commit 2796290

Please sign in to comment.