Skip to content

Commit

Permalink
Dockerfiles for testing cuda versions
Browse files Browse the repository at this point in the history
  • Loading branch information
ddemidov committed Mar 4, 2023
1 parent 1a98db6 commit bb194d9
Show file tree
Hide file tree
Showing 4 changed files with 53 additions and 2 deletions.
17 changes: 16 additions & 1 deletion docker/Dockerfile-cuda10.2
Original file line number Diff line number Diff line change
@@ -1,6 +1,21 @@
FROM nvidia/cuda:10.2-devel-ubuntu18.04
RUN apt update && apt install -y git cmake libboost-test-dev libboost-program-options-dev libboost-serialization-dev

RUN apt update && apt install -y \
git \
cmake cmake-curses-gui \
libboost-test-dev libboost-program-options-dev libboost-serialization-dev

WORKDIR /amgcl

ADD amgcl amgcl
ADD cmake cmake
ADD docs docs
ADD fortran fortran
ADD examples examples
ADD lib lib
ADD pyamgcl pyamgcl
ADD tests tests
ADD tutorial tutorial
ADD CMakeLists.txt .

RUN cmake -Bbuild -DAMGCL_BUILD_EXAMPLES=ON -DCUDA_TARGET_ARCH=Pascal
17 changes: 16 additions & 1 deletion docker/Dockerfile-cuda11.8
Original file line number Diff line number Diff line change
@@ -1,6 +1,21 @@
FROM nvidia/cuda:11.8.0-devel-ubuntu22.04
RUN apt update && apt install -y git cmake libboost-test-dev libboost-program-options-dev libboost-serialization-dev

RUN apt update && apt install -y \
git \
cmake cmake-curses-gui \
libboost-test-dev libboost-program-options-dev libboost-serialization-dev

WORKDIR /amgcl

ADD amgcl amgcl
ADD cmake cmake
ADD docs docs
ADD fortran fortran
ADD examples examples
ADD lib lib
ADD pyamgcl pyamgcl
ADD tests tests
ADD tutorial tutorial
ADD CMakeLists.txt .

RUN cmake -Bbuild -DAMGCL_BUILD_EXAMPLES=ON -DCUDA_TARGET_ARCH=Pascal
16 changes: 16 additions & 0 deletions docker/Dockerfile-cuda12.0
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
FROM nvidia/cuda:12.0.1-devel-ubuntu22.04

RUN apt update && apt install -y \
git \
cmake cmake-curses-gui \
libboost-test-dev libboost-program-options-dev libboost-serialization-dev

WORKDIR /amgcl

ADD amgcl amgcl
ADD cmake cmake
ADD docs docs
ADD fortran fortran
ADD examples examples
ADD lib lib
ADD pyamgcl pyamgcl
ADD tests tests
ADD tutorial tutorial
ADD CMakeLists.txt .

RUN cmake -Bbuild -DAMGCL_BUILD_EXAMPLES=ON -DCUDA_TARGET_ARCH=Pascal
5 changes: 5 additions & 0 deletions docker/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
%: Dockerfile-%
(cd ../ && docker build . -f ./docker/$^ -t amgcl-$@)

run-%: Dockerfile-%
docker run -ti amgcl-$*

0 comments on commit bb194d9

Please sign in to comment.