Skip to content

Commit

Permalink
Add Ginkgo (#214)
Browse files Browse the repository at this point in the history
* Add Ginkgo
  • Loading branch information
tpadioleau authored Nov 3, 2023
1 parent 870630b commit cf490ed
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 0 deletions.
7 changes: 7 additions & 0 deletions docker/doxygen/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,13 @@ RUN chmod +x /bin/bash_run \
git \
graphviz \
texlive \
&& git clone -b v1.6.0 https://github.com/ginkgo-project/ginkgo.git \
&& cd ginkgo \
&& cmake -S . -B build -DCMAKE_BUILD_TYPE=RelWithDebInfo -DGINKGO_BUILD_OMP=OFF -DGINKGO_BUILD_TESTS=OFF -DGINKGO_BUILD_EXAMPLES=OFF -DGINKGO_BUILD_BENCHMARKS=OFF \
&& cmake --build build \
&& cmake --install build \
&& cd .. \
&& rm -rf ginkgo \
&& apt-get purge -y \
apt-transport-https \
&& apt-get autoremove -y \
Expand Down
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_PREFIX_PATH=/opt/rocm -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_PREFIX_PATH=/opt/rocm -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 cf490ed

Please sign in to comment.