Skip to content

Commit

Permalink
toolchain: enable parallel build for SIRIUS and spglib
Browse files Browse the repository at this point in the history
  • Loading branch information
dev-zero committed Apr 3, 2019
1 parent 90340ba commit 2b2e16e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions tools/toolchain/scripts/install_sirius.sh
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ case "$with_sirius" in
-DCMAKE_CXX_COMPILER=mpic++ \
-DCMAKE_C_COMPILER=mpicc \
${COMPILATION_OPTIONS} .. > compile.log 2>&1
make -C src >> compile.log 2>&1
make -j $NPROCS -C src >> compile.log 2>&1

install -d ${pkg_install_dir}/include >> install.log 2>&1
install -d ${pkg_install_dir}/lib >> install.log 2>&1
Expand All @@ -153,7 +153,7 @@ case "$with_sirius" in
-DGPU_MODEL=P100 \
-DCMAKE_CXX_COMPILER=mpic++ \
-DCMAKE_C_COMPILER=mpicc ${COMPILATION_OPTIONS} .. >> compile.log 2>&1
make -C src >> compile.log 2>&1
make -j $NPROCS -C src >> compile.log 2>&1
install -m 644 src/*.a ${pkg_install_dir}/lib/cuda >> install.log 2>&1
install -m 644 src/mod_files/*.mod ${pkg_install_dir}/include/cuda >> install.log 2>&1
SIRIUS_CUDA_LDFLAGS="-L'${pkg_install_dir}/lib/cuda' -Wl,-rpath='${pkg_install_dir}/lib/cuda'"
Expand Down
2 changes: 1 addition & 1 deletion tools/toolchain/scripts/install_spglib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ case "$with_spglib" in
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX="${pkg_install_dir}" -DCMAKE_BUILD_TYPE=Release .. > configure.log 2>&1
make > make.log 2>&1
make -j $NPROCS > make.log 2>&1
make install >> make.log 2>&1
mkdir ${pkg_install_dir}/include/spglib
cp ${pkg_install_dir}/include/{,spglib/}spglib.h
Expand Down

0 comments on commit 2b2e16e

Please sign in to comment.