Commit ea46c1bc authored by Philipp  Trunschke's avatar Philipp Trunschke

adapt Dockerfile to new make rules

parent 6eafbd96
Pipeline #1206 passed with stages
in 21 minutes and 15 seconds
......@@ -6,13 +6,7 @@ WORKDIR "/tmp/"
RUN git clone https://git.hemio.de/xerus/xerus.git
WORKDIR "/tmp/xerus/"
RUN git checkout development && \
cp config.mk.default config.mk && \
sed -i "s|# BUILD_PYTHON_BINDINGS = TRUE|BUILD_PYTHON_BINDINGS = TRUE|g" config.mk && \
sed -i "s|HIGH_OPTIMIZATION = TRUE|# HIGH_OPTIMIZATION = TRUE|g" config.mk && \
sed -i "s|#INSTALL_LIB_PATH = /usr/local/lib64/|INSTALL_LIB_PATH = /usr/local/lib/|g" config.mk && \
sed -i "s|#INSTALL_HEADER_PATH = /usr/local/include/|INSTALL_HEADER_PATH = /usr/local/include/|g" config.mk && \
sed -i "s|#INSTALL_PYTHON_PATH = /usr/local/lib64/python2.7/site-packages/|INSTALL_PYTHON_PATH = /usr/local/lib/python2.7/site-packages|g" config.mk && \
sed -i "s|SUITESPARSE = -lcholmod -lspqr|SUITESPARSE = -L/usr/local/lib/suitesparse -lcholmod -lspqr|g" config.mk && \
cp ./docker/xerus/config.mk . && \
make install -j $(cat /tmp/NCORES_1)
ENV LD_LIBRARY_PATH "/usr/local/lib/:$LD_LIBRARY_PATH"
......
CXX = g++
COMPATIBILITY = -std=c++17
COMPILE_THREADS = 8 # Number of threads to use during link time optimization.
HIGH_OPTIMIZATION = TRUE # Activates -O3 -march=native and some others
OTHER += -fopenmp
PYTHON3_CONFIG = `python3-config --cflags`
PYTHON3_CONFIG += `python3-config --ldflags`
LOGGING += -D XERUS_LOG_INFO # Information that is not linked to any unexpected behaviour but might nevertheless be of interest.
LOGGING += -D XERUS_LOGFILE # Use 'error.log' file instead of cerr
LOGGING += -D XERUS_LOG_ABSOLUTE_TIME # Print absolute times instead of relative to program time
INSTALL_LIB_PATH = /usr/local/lib # Path where to install the libxerus.so shared library.
INSTALL_HEADER_PATH = /usr/local/include # Path where to install the xerus header files.
INSTALL_PYTHON2_PATH = `dirname $(python2-config --configdir)`/site-packages
INSTALL_PYTHON3_PATH = `dirname $(python3-config --configdir)`/site-packages
BLAS_LIBRARIES = -lopenblas -lgfortran # Openblas, serial
LAPACK_LIBRARIES = -llapacke -llapack # Standard Lapack + Lapacke libraries
SUITESPARSE = -L/usr/local/lib/suitesparse -lcholmod -lspqr
BOOST_LIBS = -lboost_filesystem
BOOST_PYTHON2 = -lboost_python-py27
BOOST_PYTHON3 = -lboost_python-py35
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment