Created
January 30, 2019 22:09
-
-
Save stevenrbrandt/131d89d1a6bf99810bc56394818bf3c1 to your computer and use it in GitHub Desktop.
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
FROM fedora | |
RUN yum install -y clang make cmake git python3 python3-pip \ | |
bzip2 hwloc-devel blas blas-devel lapack lapack-devel boost-devel \ | |
python3-devel libatomic python3-numpy which compat-openssl10 llvm | |
ENV LNK "-fsanitize=address -shared-libasan" | |
RUN git clone --depth 1 https://github.com/STEllAR-GROUP/hpx.git && \ | |
mkdir -p hpx/build && \ | |
cd /hpx/build && \ | |
cmake -DCMAKE_BUILD_TYPE=Debug \ | |
-DHPX_WITH_MALLOC=system \ | |
-DHPX_WITH_MORE_THAN_64_THREADS=ON \ | |
-DHPX_WITH_MAX_CPU_COUNT=80 \ | |
-DHPX_WITH_EXAMPLES=Off \ | |
-DCMAKE_CXX_FLAGS="$LNK" \ | |
-DCMAKE_C_COMPILER=clang \ | |
-DCMAKE_CXX_COMPILER=clang++ \ | |
.. && \ | |
make -j 20 install | |
RUN pip3 install pytest | |
RUN git clone --depth 1 https://github.com/pybind/pybind11.git && \ | |
mkdir -p /pybind11/build && \ | |
cd /pybind11/build && \ | |
cmake -DCMAKE_BUILD_TYPE=Debug \ | |
-DCMAKE_CXX_FLAGS="$LNK" \ | |
-DCMAKE_C_COMPILER=clang \ | |
-DCMAKE_CXX_COMPILER=clang++ \ | |
.. && \ | |
make -j 20 install | |
RUN git clone --depth 1 https://bitbucket.org/blaze-lib/blaze.git && \ | |
mkdir -p /blaze/build && \ | |
cd /blaze/build && \ | |
cmake -DCMAKE_BUILD_TYPE=Debug -DBLAZE_SMP_THREADS=C++11 \ | |
-DCMAKE_CXX_FLAGS="$LNK" \ | |
-DCMAKE_C_COMPILER=clang \ | |
-DCMAKE_CXX_COMPILER=clang++ \ | |
.. && \ | |
make -j 20 install | |
RUN git clone --depth 1 https://github.com/STEllAR-GROUP/blaze_tensor.git && \ | |
mkdir -p /blaze_tensor/build && \ | |
cd /blaze_tensor/build && \ | |
cmake -DCMAKE_BUILD_TYPE=Debug \ | |
-DCMAKE_CXX_FLAGS="$LNK" \ | |
-DCMAKE_C_COMPILER=clang \ | |
-DCMAKE_CXX_COMPILER=clang++ \ | |
.. && \ | |
make -j 20 install | |
RUN git clone --depth 1 https://github.com/STEllAR-GROUP/phylanx.git && \ | |
mkdir -p /phylanx/build && \ | |
cd /phylanx/build && \ | |
cmake -DCMAKE_BUILD_TYPE=Debug \ | |
-DHPX_DIR=/usr/local/lib64/cmake/HPX \ | |
-DCMAKE_CXX_COMPILER=clang++ \ | |
-DCMAKE_C_COMPILER=clang \ | |
-DCMAKE_CXX_FLAGS="$LNK" \ | |
.. && \ | |
make -j 20 install | |
COPY phylanx.devenv /Dockerfile | |
RUN useradd -m jovyan | |
USER jovyan | |
WORKDIR /home/jovyan | |
COPY bash.sh /home/jovyan/.bashrc | |
ENV LD_LIBRARY_PATH /usr/lib64/clang/7.0.1/lib:/usr/local/lib64 | |
ENV LSAN_OPTIONS verbosity=1:log_threads=1 | |
ENV ASAN_SYMBOLIZER_PATH /usr/bin/llvm-symbolizer |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment