<div>Dear Sihem,</div><div>The number of cores is provided by you when you call CP2K. The information is provided in the output file at two spots:</div><div> DBCSR| MPI: My process id 0<br /> DBCSR| MPI: Number of processes 2<br /> DBCSR| OMP: Current number of threads 2<br /> DBCSR| OMP: Max number of threads 2</div><div>...</div><div> GLOBAL| Total number of message passing processes 2<br /> GLOBAL| Number of threads for this process 2</div><div><br /></div><div>CP2K employs a hybrid MPI/OpenMP approach using MPI ranks and OpenMP threads. The total number of CPUs in use is the product of both, in the above example, it is 2*2=4.</div><div>The number of MPI ranks is specified when you call CP2K using mpirun, mpiexec, srun etc. With mpiexec, it is `mpiexec -np <number of MPI processes/ranks> /path/to/cp2k/exe/cp2k.psmp -i <input_file> -o <output_file>`. In case of mpirun, check the documentation of your MPI implementation. In case of a job scheduler such as Slurm, check the respective documentation.</div><div>The number of OpenMP threads are using the environment variable OMP_NUM_THREADS (see documentation on OpenMP), by default all available threads are used.</div><div>If all CPUs are used as expected, it may be that your work machine does not have enough compute power for your calculation. To further estimate it, reduce your basis set to a SZV one instead DZVP.</div><div>Best,</div><div>Frederick</div><div class="gmail_quote"><div dir="auto" class="gmail_attr">Sihem AZIZI schrieb am Sonntag, 20. Juli 2025 um 16:36:15 UTC+2:<br/></div><blockquote class="gmail_quote" style="margin: 0 0 0 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><span dir="ltr" aria-label="Translated text: Dear all,
I ran the attached calculation, and it's taking an extremely long time. The workstation I'm working on has 8 cores, and I don't know how many cores are being used.
Can I specify the number of processors? If so, how can I do it? Thank you for your help. Sihem" style="line-height:36px;background-color:rgb(248,249,250);border:none;padding:2px 0.14em 2px 0px;font-family:inherit;overflow:hidden;width:270px;color:rgb(31,31,31)"><span lang="en"><font size="3">Dear all,
I ran the attached calculation, and it's taking an extremely long time. The workstation I'm working on has 8 cores, and I don't know how many cores are being used.
Can I specify the number of processors? If so, how can I do it? </font></span></span><div><span dir="ltr" aria-label="Translated text: Dear all,
I ran the attached calculation, and it's taking an extremely long time. The workstation I'm working on has 8 cores, and I don't know how many cores are being used.
Can I specify the number of processors? If so, how can I do it? Thank you for your help. Sihem" style="line-height:36px;background-color:rgb(248,249,250);border:none;padding:2px 0.14em 2px 0px;font-family:inherit;overflow:hidden;width:270px;color:rgb(31,31,31)"><span lang="en"><font size="3">Thank you for your help. </font></span></span></div><div><span dir="ltr" aria-label="Translated text: Dear all,
I ran the attached calculation, and it's taking an extremely long time. The workstation I'm working on has 8 cores, and I don't know how many cores are being used.
Can I specify the number of processors? If so, how can I do it? Thank you for your help. Sihem" style="line-height:36px;background-color:rgb(248,249,250);border:none;padding:2px 0.14em 2px 0px;font-family:inherit;overflow:hidden;width:270px;color:rgb(31,31,31)"><span lang="en"><font size="3">Sihem</font></span></span></div></blockquote></div>
<p></p>
-- <br />
You received this message because you are subscribed to the Google Groups "cp2k" group.<br />
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="mailto:cp2k+unsubscribe@googlegroups.com">cp2k+unsubscribe@googlegroups.com</a>.<br />
To view this discussion visit <a href="https://groups.google.com/d/msgid/cp2k/f88a4b0f-db10-43d9-8ed4-2c186089c864n%40googlegroups.com?utm_medium=email&utm_source=footer">https://groups.google.com/d/msgid/cp2k/f88a4b0f-db10-43d9-8ed4-2c186089c864n%40googlegroups.com</a>.<br />