User Tools

Site Tools


howto:compile_on_windows

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
howto:compile_on_windows [2025/07/15 06:17] – Add mpich development package krackhowto:compile_on_windows [2025/08/21 14:08] (current) – Revert last change and force full cleaning krack
Line 34: Line 34:
 git clone --recursive https://github.com/cp2k/cp2k.git cp2k git clone --recursive https://github.com/cp2k/cp2k.git cp2k
 </code> </code>
-or download a CP2K release version like 2025.1+or download a CP2K release version like 2025.2
 <code> <code>
-git clone --recursive -b support/v2025.https://github.com/cp2k/cp2k.git cp2k+git clone --recursive -b support/v2025.https://github.com/cp2k/cp2k.git cp2k
 </code> </code>
  
Line 82: Line 82:
 </code> </code>
 and the ''stacksize'' to 65 MB (check with ''ulimit -a''). and the ''stacksize'' to 65 MB (check with ''ulimit -a'').
-</code> 
  
 ==== Test the serial CP2K binary ==== ==== Test the serial CP2K binary ====
Line 117: Line 116:
 First reset the CP2K repository to the state of a fresh ''git clone'' if needed with First reset the CP2K repository to the state of a fresh ''git clone'' if needed with
 <code> <code>
-git clean -fdx+git clean -ffdx
 </code> </code>
 Install additional packages needed for an MPI/OpenMP parallel CP2K binary. Here we use the MPI implementation ''MPICH'' Install additional packages needed for an MPI/OpenMP parallel CP2K binary. Here we use the MPI implementation ''MPICH''
 <code> <code>
-sudo apt -y install mpich libmpich-dev pkg-config zlib1g-dev+sudo apt -y install automake mpich libmpich-dev pkg-config zlib1g-dev
 </code> </code>
 and some system packages for data compression have to be installed as well. and some system packages for data compression have to be installed as well.
Line 127: Line 126:
 <code> <code>
 cd tools/toolchain cd tools/toolchain
-./install_cp2k_toolchain.sh --install-all --with-gcc=system --with-mpich=system --with-sirius=no+./install_cp2k_toolchain.sh --install-all --with-gcc=system --with-mpich=system --with-dftd4=no
 </code> </code>
 The commands for compiling The commands for compiling
howto/compile_on_windows.1752560238.txt.gz · Last modified: by krack