-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #20 from prashjha/remove_hpx
Removed HPX and Boost dependencies and added mesh partitioning and MPI and Multithreading parallelism
- Loading branch information
Showing
679 changed files
with
128,303 additions
and
164,035 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 |
---|---|---|
|
@@ -5,25 +5,48 @@ | |
# Distributed under the Boost Software License, Version 1.0. (See accompanying | ||
# file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) | ||
|
||
# base ubuntu image with petsc, libmesh, hpx | ||
# base ubuntu image with essentials and vtk | ||
FROM prashjha/peridem-base-bionic:latest | ||
|
||
# Set metadata | ||
LABEL maintainer="Prashant K. Jha <[email protected]>" | ||
LABEL description="PeriDEM docker image" | ||
|
||
WORKDIR / | ||
## build command | ||
## docker build -t prashjha/peridem-bionic:latest -f ./Dockerfile-bionic . 2>&1 | tee log-peridem-bionic.txt | ||
|
||
RUN git clone https://github.com/prashjha/PeriDEM.git | ||
# ----------------------- | ||
# setup user (for mpi tests) | ||
# username - user | ||
# password - password | ||
# add only if the user does not exist | ||
# ----------------------- | ||
RUN if id user >/dev/null 2>&1; then echo "User 'user' already exists"; else echo "User 'user' does not exist so creating user 'user'" && useradd -m user && yes password | passwd user && usermod -s /bin/bash user; fi | ||
|
||
RUN cd /PeriDEM && \ | ||
mkdir build && \ | ||
cd build && \ | ||
cmake -DHPX_IGNORE_COMPILER_COMPATIBILITY=ON \ | ||
-DCMAKE_BUILD_TYPE=Release \ | ||
-DEnable_Tests=ON \ | ||
-DHPX_DIR=${HPX_DIR}/lib/cmake/HPX \ | ||
.. && \ | ||
make -j 2 && \ | ||
make install | ||
# change user | ||
USER user | ||
WORKDIR /home/user | ||
|
||
# ----------------------- | ||
# setup git pull method | ||
# ----------------------- | ||
RUN git config --global url."https://github.com/".insteadOf [email protected]: && \ | ||
git config --global url."https://".insteadOf git:// | ||
|
||
# ----------------------- | ||
# build peridem | ||
# ----------------------- | ||
RUN git clone https://github.com/prashjha/PeriDEM.git &&\ | ||
cd PeriDEM &&\ | ||
git submodule update --init --recursive && \ | ||
mkdir -p build && \ | ||
cd build && \ | ||
cmake -DCMAKE_BUILD_TYPE=Release \ | ||
-DEnable_Tests=ON \ | ||
-DDisable_Docker_MPI_Tests=OFF \ | ||
-DVTK_DIR=/usr/local/lib/cmake/vtk-9.3 \ | ||
-DMETIS_DIR=/usr/lib \ | ||
.. && \ | ||
make -j 2 && \ | ||
make install | ||
|
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 |
---|---|---|
|
@@ -5,25 +5,48 @@ | |
# Distributed under the Boost Software License, Version 1.0. (See accompanying | ||
# file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) | ||
|
||
# base ubuntu image with petsc, libmesh, hpx | ||
# base ubuntu image with essentials and vtk | ||
FROM prashjha/peridem-base-focal:latest | ||
|
||
# Set metadata | ||
LABEL maintainer="Prashant K. Jha <[email protected]>" | ||
LABEL description="PeriDEM docker image" | ||
|
||
WORKDIR / | ||
## build command | ||
## docker build -t prashjha/peridem-focal:latest -f ./Dockerfile-focal . 2>&1 | tee log-peridem-focal.txt | ||
|
||
RUN git clone https://github.com/prashjha/PeriDEM.git | ||
# ----------------------- | ||
# setup user (for mpi tests) | ||
# username - user | ||
# password - password | ||
# add only if the user does not exist | ||
# ----------------------- | ||
RUN if id user >/dev/null 2>&1; then echo "User 'user' already exists"; else echo "User 'user' does not exist so creating user 'user'" && useradd -m user && yes password | passwd user && usermod -s /bin/bash user; fi | ||
|
||
RUN cd /PeriDEM && \ | ||
mkdir build && \ | ||
cd build && \ | ||
cmake -DHPX_IGNORE_COMPILER_COMPATIBILITY=ON \ | ||
-DCMAKE_BUILD_TYPE=Release \ | ||
-DEnable_Tests=ON \ | ||
-DHPX_DIR=${HPX_DIR}/lib/cmake/HPX \ | ||
.. && \ | ||
make -j 2 && \ | ||
make install | ||
# change user | ||
USER user | ||
WORKDIR /home/user | ||
|
||
# ----------------------- | ||
# setup git pull method | ||
# ----------------------- | ||
RUN git config --global url."https://github.com/".insteadOf [email protected]: && \ | ||
git config --global url."https://".insteadOf git:// | ||
|
||
# ----------------------- | ||
# build peridem | ||
# ----------------------- | ||
RUN git clone https://github.com/prashjha/PeriDEM.git &&\ | ||
cd PeriDEM &&\ | ||
git submodule update --init --recursive && \ | ||
mkdir -p build && \ | ||
cd build && \ | ||
cmake -DCMAKE_BUILD_TYPE=Release \ | ||
-DEnable_Tests=ON \ | ||
-DDisable_Docker_MPI_Tests=OFF \ | ||
-DVTK_DIR=/usr/local/lib/cmake/vtk-9.3 \ | ||
-DMETIS_DIR=/usr/lib \ | ||
.. && \ | ||
make -j 2 && \ | ||
make install | ||
|
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
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
Oops, something went wrong.