-
Notifications
You must be signed in to change notification settings - Fork 112
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Dockerfiles for testing cuda versions
- Loading branch information
Showing
4 changed files
with
53 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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-$* |