File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10,7 +10,6 @@ endif()
1010list (APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR } /cmake" )
1111include (cmake/build_type.cmake )
1212include (cmake/adjust_mpiexec_flags.cmake )
13- include (GNUInstallDirs )
1413
1514# Options
1615#
@@ -91,6 +90,8 @@ endif()
9190
9291project (cosma VERSION 2.4.0 LANGUAGES CXX )
9392
93+ include (GNUInstallDirs )
94+
9495# preserve rpaths when installing and make the install folder relocatable
9596# use `CMAKE_SKIP_INSTALL_RPATH` to skip this
9697# https://spack.readthedocs.io/en/latest/workflows.html#write-the-cmake-build
Original file line number Diff line number Diff line change @@ -14,9 +14,9 @@ RUN mkdir /COSMA/build && cd /COSMA/build && \
1414 -DCOSMA_SCALAPACK=CUSTOM \
1515 -DCMAKE_BUILD_TYPE=Debug \
1616 -DCMAKE_CXX_FLAGS_DEBUG="-g -Og -fno-omit-frame-pointer -fsanitize=address,undefined" \
17- -DCMAKE_INSTALL_PREFIX=/usr && \
17+ -DCMAKE_INSTALL_PREFIX=/root/COSMA-build && \
1818 make -j$(nproc) && \
19- make DESTDIR=/root/COSMA-build install && \
19+ make install && \
2020 rm -rf /COSMA
2121
2222RUN /root/libtree/libtree \
Original file line number Diff line number Diff line change @@ -9,13 +9,12 @@ RUN COMPILERVARS_ARCHITECTURE=intel64 /opt/intel/bin/compilervars.sh && \
99 mkdir /COSMA/build && cd /COSMA/build && \
1010 CC=mpicc CXX=mpicxx cmake .. \
1111 -DCOSMA_WITH_TESTS=ON \
12- -DCUDA_PATH=/usr/local/cuda \
1312 -DCOSMA_BLAS=MKL \
1413 -DCOSMA_SCALAPACK=MKL \
1514 -DCMAKE_BUILD_TYPE=Release \
16- -DCMAKE_INSTALL_PREFIX=/usr && \
15+ -DCMAKE_INSTALL_PREFIX=/root/COSMA-build && \
1716 make -j$(nproc) && \
18- make DESTDIR=/root/COSMA-build install && \
17+ make install && \
1918 rm -rf /COSMA
2019
2120ENV MKL_LIB=/opt/intel/compilers_and_libraries/linux/mkl/lib/intel64
Original file line number Diff line number Diff line change @@ -14,9 +14,9 @@ RUN mkdir /COSMA/build && cd /COSMA/build && \
1414 -DCOSMA_BLAS=CUDA \
1515 -DCOSMA_SCALAPACK=CUSTOM \
1616 -DCMAKE_BUILD_TYPE=Release \
17- -DCMAKE_INSTALL_PREFIX=/usr && \
17+ -DCMAKE_INSTALL_PREFIX=/root/COSMA-build && \
1818 make -j$(nproc) && \
19- make DESTDIR=/root/COSMA-build install && \
19+ make && \
2020 rm -rf /COSMA
2121
2222# Run linuxdeploy, and add a bunch of libs that are dlopen'ed by mkl
You can’t perform that action at this time.
0 commit comments