mirror of
https://github.com/cp2k/cp2k.git
synced 2026-07-21 14:35:15 -04:00
Toolchain: Don't install fmt when SIRIUS is disabled (#5115)
This commit is contained in:
parent
f9f50dc2f5
commit
2d33723005
4 changed files with 12 additions and 13 deletions
1
tools/toolchain/.gitignore
vendored
1
tools/toolchain/.gitignore
vendored
|
|
@ -1,3 +1,4 @@
|
|||
/install/
|
||||
/build/
|
||||
!/scripts/
|
||||
toolchain_settings
|
||||
|
|
|
|||
|
|
@ -202,11 +202,11 @@ else
|
|||
done
|
||||
fi
|
||||
# If GPU acceleration is used, add the option about GPU acceleration
|
||||
if [ "${enable_cuda}" = "__TRUE__" ]; then
|
||||
CMAKE_OPTIONS+=" -DCP2K_USE_ACCEL=CUDA -DCP2K_WITH_GPU=${gpu_ver}"
|
||||
elif [ "${enable_hip}" = "__TRUE__" ]; then
|
||||
CMAKE_OPTIONS+=" -DCP2K_USE_ACCEL=HIP -DCP2K_WITH_GPU=${gpu_ver}"
|
||||
elif [ "${enable_opencl}" = "__TRUE__" ]; then
|
||||
if [ "${ENABLE_CUDA}" = "__TRUE__" ]; then
|
||||
CMAKE_OPTIONS+=" -DCP2K_USE_ACCEL=CUDA -DCP2K_WITH_GPU=${GPU_VER}"
|
||||
elif [ "${ENABLE_HIP}" = "__TRUE__" ]; then
|
||||
CMAKE_OPTIONS+=" -DCP2K_USE_ACCEL=HIP -DCP2K_WITH_GPU=${GPU_VER}"
|
||||
elif [ "${ENABLE_OPENCL}" = "__TRUE__" ]; then
|
||||
CMAKE_OPTIONS+=" -DCP2K_USE_ACCEL=OPENCL"
|
||||
fi
|
||||
|
||||
|
|
|
|||
|
|
@ -161,10 +161,6 @@ OPTIONS:
|
|||
settings after resolving known conflicts, then exit
|
||||
without actually downloading tarballs or building
|
||||
packages.
|
||||
--list-cmake-options If yes, generate a list of CMake options for building
|
||||
CP2K with the toolchain configuration as well as some
|
||||
further instructions at the end of toolchain.
|
||||
Default = yes
|
||||
|
||||
The --enable-FEATURE options follow the rules:
|
||||
--enable-FEATURE=yes Enable this particular feature.
|
||||
|
|
@ -1121,6 +1117,7 @@ elif [ "${with_sirius}" = "__DONTUSE__" ]; then
|
|||
with_pugixml="__DONTUSE__"
|
||||
with_spfft="__DONTUSE__"
|
||||
with_libvdwxc="__DONTUSE__"
|
||||
with_fmt="__DONTUSE__"
|
||||
[ "${GPUVER}" = "no" ] && with_spla="__DONTUSE__"
|
||||
fi
|
||||
|
||||
|
|
@ -1293,11 +1290,11 @@ write_toolchain_env "${INSTALLDIR}"
|
|||
# Write toolchain config
|
||||
echo "tool_list=\"${tool_list}\"" > "${INSTALLDIR}"/toolchain.conf
|
||||
echo "mpi_mode=\"${MPI_MODE}\"" >> "${INSTALLDIR}"/toolchain.conf
|
||||
echo "enable_cuda=\"${ENABLE_CUDA}\"" >> "${INSTALLDIR}"/toolchain.conf
|
||||
echo "enable_hip=\"${ENABLE_HIP}\"" >> "${INSTALLDIR}"/toolchain.conf
|
||||
echo "enable_opencl=\"${ENABLE_OPENCL}\"" >> "${INSTALLDIR}"/toolchain.conf
|
||||
echo "ENABLE_CUDA=\"${ENABLE_CUDA}\"" >> "${INSTALLDIR}"/toolchain.conf
|
||||
echo "ENABLE_HIP=\"${ENABLE_HIP}\"" >> "${INSTALLDIR}"/toolchain.conf
|
||||
echo "ENABLE_OPENCL=\"${ENABLE_OPENCL}\"" >> "${INSTALLDIR}"/toolchain.conf
|
||||
if [ "${ENABLE_CUDA}" == "__TRUE__" ] || [ "${ENABLE_HIP}" == "__TRUE__" ]; then
|
||||
echo "gpu_ver=\"${GPUVER}\"" >> "${INSTALLDIR}"/toolchain.conf
|
||||
echo "GPU_VER=\"${GPUVER}\"" >> "${INSTALLDIR}"/toolchain.conf
|
||||
fi
|
||||
for ii in ${package_list}; do
|
||||
install_mode=$(eval "echo \${with_${ii}}")
|
||||
|
|
|
|||
|
|
@ -39,6 +39,7 @@ case "$with_fmt" in
|
|||
-DCMAKE_INSTALL_PREFIX="${pkg_install_dir}" \
|
||||
-DCMAKE_INSTALL_LIBDIR="lib" \
|
||||
-DCMAKE_VERBOSE_MAKEFILE=ON \
|
||||
-DFMT_TEST=OFF \
|
||||
> configure.log 2>&1 || tail_excerpt configure.log
|
||||
make install -j $(get_nprocs) > make.log 2>&1 || tail_excerpt make.log
|
||||
cd ..
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue