Line data Source code
1 : !--------------------------------------------------------------------------------------------------!
2 : ! CP2K: A general program to perform molecular dynamics simulations !
3 : ! Copyright 2000-2026 CP2K developers group <https://cp2k.org> !
4 : ! !
5 : ! SPDX-License-Identifier: GPL-2.0-or-later !
6 : !--------------------------------------------------------------------------------------------------!
7 :
8 : ! **************************************************************************************************
9 : !> \brief builds the global input section for cp2k
10 : !> \par History
11 : !> 06.2004 created [fawzi]
12 : !> 03.2014 moved to separate file [Ole Schuett]
13 : !> 10.2016 update seed input [Matthias Krack]
14 : !> \author fawzi
15 : ! **************************************************************************************************
16 : MODULE input_cp2k_global
17 : USE bibliography, ONLY: Ceriotti2014,&
18 : Frigo2005,&
19 : Schonherr2014
20 : USE cp_blacs_env, ONLY: BLACS_GRID_COL,&
21 : BLACS_GRID_ROW,&
22 : BLACS_GRID_SQUARE
23 : USE cp_dbcsr_cp2k_link, ONLY: create_dbcsr_section
24 : USE cp_fm_cholesky, ONLY: FM_CHOLESKY_TYPE_DEFAULT,&
25 : FM_CHOLESKY_TYPE_DLAF,&
26 : FM_CHOLESKY_TYPE_SCALAPACK
27 : USE cp_fm_diag, ONLY: FM_DIAG_TYPE_CUSOLVER,&
28 : FM_DIAG_TYPE_DEFAULT,&
29 : FM_DIAG_TYPE_DLAF,&
30 : FM_DIAG_TYPE_ELPA,&
31 : FM_DIAG_TYPE_SCALAPACK
32 : USE cp_fm_elpa, ONLY: elpa_kernel_descriptions,&
33 : elpa_kernel_ids,&
34 : elpa_kernel_names,&
35 : elpa_one_stage,&
36 : elpa_print,&
37 : elpa_qr
38 : USE cp_fm_struct, ONLY: cp_fm_struct_get_ncol_block,&
39 : cp_fm_struct_get_nrow_block
40 : USE cp_output_handling, ONLY: add_last_numeric,&
41 : cp_print_key_section_create,&
42 : debug_print_level,&
43 : high_print_level,&
44 : low_print_level,&
45 : medium_print_level,&
46 : silent_print_level
47 : USE grid_api, ONLY: GRID_BACKEND_AUTO,&
48 : GRID_BACKEND_CPU,&
49 : GRID_BACKEND_DGEMM,&
50 : GRID_BACKEND_GPU,&
51 : GRID_BACKEND_REF
52 : USE input_constants, ONLY: &
53 : bsse_run, callgraph_all, callgraph_master, callgraph_none, cell_opt_run, debug_run, &
54 : do_atom, do_band, do_cosma, do_cp2k, do_dgemm_blas, do_dgemm_spla, do_farming, &
55 : do_fft_fftw3, do_fft_sg, do_opt_basis, do_optimize_input, do_scalapack, do_swarm, do_tamc, &
56 : do_test, do_tree_mc, do_tree_mc_ana, driver_run, ehrenfest, energy_force_run, energy_run, &
57 : fftw_plan_estimate, fftw_plan_exhaustive, fftw_plan_measure, fftw_plan_patient, gaussian, &
58 : geo_opt_run, linear_response_run, mimic_run, mol_dyn_run, mon_car_run, mtlr_run, negf_run, &
59 : none_run, pint_run, real_time_propagation, tree_mc_run, vib_anal
60 : USE input_keyword_types, ONLY: keyword_create,&
61 : keyword_release,&
62 : keyword_type
63 : USE input_section_types, ONLY: section_add_keyword,&
64 : section_add_subsection,&
65 : section_create,&
66 : section_release,&
67 : section_type
68 : USE input_val_types, ONLY: char_t,&
69 : integer_t,&
70 : logical_t
71 : USE kinds, ONLY: dp
72 : USE string_utilities, ONLY: s2a
73 : USE timings, ONLY: default_timings_level
74 : #include "./base/base_uses.f90"
75 :
76 : IMPLICIT NONE
77 : PRIVATE
78 :
79 : LOGICAL, PRIVATE, PARAMETER :: debug_this_module = .TRUE.
80 : CHARACTER(len=*), PARAMETER, PRIVATE :: moduleN = 'input_cp2k_global'
81 :
82 : PUBLIC :: create_global_section
83 :
84 : CONTAINS
85 :
86 : ! **************************************************************************************************
87 : !> \brief section to hold global settings for the whole program
88 : !> \param section the section to be created
89 : !> \author fawzi
90 : ! **************************************************************************************************
91 16427 : SUBROUTINE create_global_section(section)
92 : TYPE(section_type), POINTER :: section
93 :
94 : INTEGER :: default_dgemm
95 : TYPE(keyword_type), POINTER :: keyword
96 : TYPE(section_type), POINTER :: print_key, sub_section
97 :
98 16427 : NULLIFY (print_key)
99 16427 : CPASSERT(.NOT. ASSOCIATED(section))
100 : CALL section_create(section, __LOCATION__, name="GLOBAL", &
101 : description="Section with general information on which kind "// &
102 : "of simulation to perform and parameters for the whole PROGRAM", &
103 16427 : n_keywords=7, n_subsections=0, repeats=.FALSE.)
104 :
105 16427 : NULLIFY (keyword)
106 : CALL keyword_create(keyword, __LOCATION__, name="BLACS_GRID", &
107 : description="how to distribute the processors on the 2d grid needed "// &
108 : "by BLACS (and thus SCALAPACK)", usage="BLACS_GRID SQUARE", &
109 : default_i_val=BLACS_GRID_SQUARE, enum_c_vals=s2a("SQUARE", "ROW", "COLUMN"), &
110 : enum_desc=s2a("Distribution by matrix blocks", "Distribution by matrix rows", &
111 : "Distribution by matrix columns"), &
112 16427 : enum_i_vals=[BLACS_GRID_SQUARE, BLACS_GRID_ROW, BLACS_GRID_COL])
113 16427 : CALL section_add_keyword(section, keyword)
114 16427 : CALL keyword_release(keyword)
115 :
116 : CALL keyword_create(keyword, __LOCATION__, name="BLACS_REPEATABLE", &
117 : description="Use a topology for BLACS collectives that is guaranteed to be repeatable "// &
118 : "on homogeneous architectures", &
119 : usage="BLACS_REPEATABLE", &
120 16427 : default_l_val=.FALSE., lone_keyword_l_val=.TRUE.)
121 16427 : CALL section_add_keyword(section, keyword)
122 16427 : CALL keyword_release(keyword)
123 :
124 : CALL keyword_create(keyword, __LOCATION__, name="PREFERRED_DIAG_LIBRARY", &
125 : description="Specifies the diagonalization library to be used. If not available, "// &
126 : "the ScaLAPACK library is used", &
127 : usage="PREFERRED_DIAG_LIBRARY ELPA", &
128 : enum_i_vals=[FM_DIAG_TYPE_ELPA, &
129 : FM_DIAG_TYPE_SCALAPACK, &
130 : FM_DIAG_TYPE_SCALAPACK, &
131 : FM_DIAG_TYPE_CUSOLVER, &
132 : FM_DIAG_TYPE_DLAF], &
133 : enum_c_vals=s2a("ELPA", "ScaLAPACK", "SL", "CUSOLVER", "DLAF"), &
134 : enum_desc=s2a("ELPA library", &
135 : "ScaLAPACK library", &
136 : "ScaLAPACK library (shorthand)", &
137 : "cuSOLVER (CUDA GPU library)", &
138 : "DLA-Future (CUDA/HIP GPU library)"), &
139 16427 : default_i_val=FM_DIAG_TYPE_DEFAULT)
140 16427 : CALL section_add_keyword(section, keyword)
141 16427 : CALL keyword_release(keyword)
142 :
143 : CALL keyword_create(keyword, __LOCATION__, name="DIRECT_GENERALIZED_DIAGONALIZATION", &
144 : description="Request direct generalized eigenvalue problem diagonalization "// &
145 : "without a CP2K-side Cholesky reduction in supported dense matrix paths. "// &
146 : "The eigensolver is still selected by PREFERRED_DIAG_LIBRARY.", &
147 : usage="DIRECT_GENERALIZED_DIAGONALIZATION", &
148 16427 : default_l_val=.FALSE., lone_keyword_l_val=.TRUE.)
149 16427 : CALL section_add_keyword(section, keyword)
150 16427 : CALL keyword_release(keyword)
151 :
152 : CALL keyword_create(keyword, __LOCATION__, name="PREFERRED_CHOLESKY_LIBRARY", &
153 : description="Specifies Cholesky decomposition library to be used. If not available, "// &
154 : "the ScaLAPACK library is used", &
155 : usage="PREFERRED_CHOLESKY_LIBRARY DLAF", &
156 : enum_i_vals=[FM_CHOLESKY_TYPE_SCALAPACK, &
157 : FM_CHOLESKY_TYPE_SCALAPACK, &
158 : FM_CHOLESKY_TYPE_DLAF], &
159 : enum_c_vals=s2a("ScaLAPACK", "SL", "DLAF"), &
160 : enum_desc=s2a("ScaLAPACK library", &
161 : "ScaLAPACK library (shorthand)", &
162 : "DLA-Future (CUDA/HIP GPU library)"), &
163 16427 : default_i_val=FM_CHOLESKY_TYPE_DEFAULT)
164 16427 : CALL section_add_keyword(section, keyword)
165 16427 : CALL keyword_release(keyword)
166 :
167 : #if defined(__SPLA) && defined(__OFFLOAD_GEMM)
168 : default_dgemm = do_dgemm_spla
169 : #else
170 16427 : default_dgemm = do_dgemm_blas
171 : #endif
172 : CALL keyword_create(keyword, __LOCATION__, name="PREFERRED_DGEMM_LIBRARY", &
173 : description="Specifies the DGEMM library to be used. If not available, "// &
174 : "the BLAS routine is used. This keyword affects some DGEMM calls in the WFC code and turns on their "// &
175 : "acceleration with SpLA. This keyword affects only local DGEMM calls, not the calls to PDGEMM "// &
176 : "(see keyword FM%TYPE_OF_MATRIX_MULTIPLICATION).", &
177 : usage="PREFERRED_DGEMM_LIBRARY SPLA", &
178 : default_i_val=default_dgemm, &
179 : enum_i_vals=[do_dgemm_spla, do_dgemm_blas], &
180 : enum_c_vals=s2a("SPLA", "BLAS"), &
181 16427 : enum_desc=s2a("SPLA library", "BLAS library"))
182 16427 : CALL section_add_keyword(section, keyword)
183 16427 : CALL keyword_release(keyword)
184 :
185 : CALL keyword_create(keyword, __LOCATION__, name="EPS_CHECK_DIAG", &
186 : description="Check that the orthonormality of the eigenvectors after a diagonalization "// &
187 : "fulfills the specified numerical accuracy. A negative threshold value disables the check.", &
188 : usage="EPS_CHECK_DIAG 1.0E-14", &
189 16427 : default_r_val=-1.0_dp)
190 16427 : CALL section_add_keyword(section, keyword)
191 16427 : CALL keyword_release(keyword)
192 :
193 : CALL keyword_create(keyword, __LOCATION__, name="ELPA_KERNEL", &
194 : description="Specifies the kernel to be used when ELPA is in use", &
195 : default_i_val=elpa_kernel_ids(1), &
196 : enum_i_vals=elpa_kernel_ids, &
197 : enum_c_vals=elpa_kernel_names, &
198 16427 : enum_desc=elpa_kernel_descriptions)
199 16427 : CALL section_add_keyword(section, keyword)
200 16427 : CALL keyword_release(keyword)
201 :
202 : CALL keyword_create(keyword, __LOCATION__, name="ELPA_NEIGVEC_MIN", &
203 : description="Minimum number of eigenvectors for the use of the eigensolver from "// &
204 : "the ELPA library. The eigensolver from the ScaLAPACK library is used as fallback "// &
205 : "for all smaller cases", &
206 : usage="ELPA_NEIGVEC_MIN 32", &
207 16427 : default_i_val=MIN(cp_fm_struct_get_nrow_block(), cp_fm_struct_get_ncol_block()))
208 16427 : CALL section_add_keyword(section, keyword)
209 16427 : CALL keyword_release(keyword)
210 :
211 : CALL keyword_create(keyword, __LOCATION__, name="ELPA_QR", &
212 : description="For ELPA, enable a blocked QR step when reducing the input matrix "// &
213 : "to banded form before diagonalization. Requires ELPA version 201505 or newer and "// &
214 : "is automatically deactivated otherwise. QR is activated only when the matrix size "// &
215 : "is suitable. Keyword ELPA_PRINT helps identify suitable cases. Can accelerate "// &
216 : "diagonalization for suitable matrices.", &
217 : usage="ELPA_QR", &
218 16427 : default_l_val=elpa_qr, lone_keyword_l_val=.TRUE.)
219 16427 : CALL section_add_keyword(section, keyword)
220 16427 : CALL keyword_release(keyword)
221 :
222 : CALL keyword_create(keyword, __LOCATION__, name="ELPA_ONE_STAGE", &
223 : description="For ELPA, enable the one-stage solver (instead of the two-stage solver). "// &
224 : "Please note, ELPA_QR and ELPA_KERNEL settings may be ignored.", &
225 : usage="ELPA_ONE_STAGE", &
226 16427 : default_l_val=elpa_one_stage, lone_keyword_l_val=.TRUE.)
227 16427 : CALL section_add_keyword(section, keyword)
228 16427 : CALL keyword_release(keyword)
229 :
230 : CALL keyword_create(keyword, __LOCATION__, name="ELPA_PRINT", &
231 : description="Controls the printing of ELPA diagonalization information. "// &
232 : "Useful for testing purposes, especially together with keyword ELPA_QR.", &
233 16427 : usage="ELPA_PRINT", default_l_val=elpa_print, lone_keyword_l_val=.TRUE.)
234 16427 : CALL section_add_keyword(section, keyword)
235 16427 : CALL keyword_release(keyword)
236 :
237 : CALL keyword_create(keyword, __LOCATION__, name="DLAF_NEIGVEC_MIN", &
238 : description="Minimum number of eigenvectors for the use of the eigensolver from "// &
239 : "the DLA-Future library. The eigensolver from the ScaLAPACK library is used as fallback "// &
240 : "for all smaller cases", &
241 : usage="DLAF_NEIGVEC_MIN 512", &
242 16427 : default_i_val=1024)
243 16427 : CALL section_add_keyword(section, keyword)
244 16427 : CALL keyword_release(keyword)
245 :
246 : CALL keyword_create(keyword, __LOCATION__, name="DLAF_CHOLESKY_N_MIN", &
247 : description="Minimum matrix size for the use of the Cholesky decomposition from "// &
248 : "the DLA-Future library. The Cholesky decomposition from the ScaLAPACK library is used as fallback "// &
249 : "for all smaller cases", &
250 : usage="DLAF_CHOLESKY_N_MIN 512", &
251 16427 : default_i_val=1024)
252 16427 : CALL section_add_keyword(section, keyword)
253 16427 : CALL keyword_release(keyword)
254 :
255 : CALL keyword_create( &
256 : keyword, __LOCATION__, name="PREFERRED_FFT_LIBRARY", &
257 : description="Specifies the FFT library which should be preferred. "// &
258 : "If it is not available, use FFTW3 if this is linked in, if FFTW3 is not available use FFTSG. "// &
259 : "Improved performance with FFTW3 can be obtained specifying a proper value for FFTW_PLAN_TYPE. "// &
260 : "Contrary to earlier CP2K versions, all libraries will result in the same grids, "// &
261 : "i.e. the subset of grids which all FFT libraries can transform. "// &
262 : "See EXTENDED_FFT_LENGTHS if larger FFTs or grids that more precisely match a given cutoff are needed, "// &
263 : "or older results need to be reproduced. "// &
264 : "FFTW3 is often (close to) optimal, and well tested with CP2K.", &
265 : usage="PREFERRED_FFT_LIBRARY FFTW3", &
266 : citations=[Frigo2005], &
267 : default_i_val=do_fft_fftw3, &
268 : enum_i_vals=[do_fft_sg, do_fft_fftw3, do_fft_fftw3], &
269 : enum_c_vals=s2a("FFTSG", "FFTW3", "FFTW"), &
270 : enum_desc=s2a("Stefan Goedecker's FFT (FFTSG), always available, "// &
271 : "will be used in case a FFT library is specified and not available.", &
272 : "a fast portable FFT library. Recommended. "// &
273 : "See also the FFTW_PLAN_TYPE, and FFTW_WISDOM_FILE_NAME keywords.", &
274 32854 : "Same as FFTW3 (for compatibility with CP2K 2.3)"))
275 16427 : CALL section_add_keyword(section, keyword)
276 16427 : CALL keyword_release(keyword)
277 :
278 : CALL keyword_create(keyword, __LOCATION__, name="FFTW_WISDOM_FILE_NAME", &
279 : description="The name of the file that contains wisdom (pre-planned FFTs) for use with FFTW3. "// &
280 : "Using wisdom can significantly speed up the FFTs (see the FFTW homepage for details). "// &
281 : "Note that wisdom is not transferable between different computer (architectures). "// &
282 : "Wisdom can be generated using the fftw-wisdom tool that is part of the fftw installation. "// &
283 : "cp2k/tools/cp2k-wisdom is a script that contains some additional info, and can help "// &
284 : "to generate a useful default for /etc/fftw/wisdom or particular values for a given simulation.", &
285 16427 : usage="FFTW_WISDOM_FILE_NAME wisdom.dat", default_lc_val="/etc/fftw/wisdom")
286 16427 : CALL section_add_keyword(section, keyword)
287 16427 : CALL keyword_release(keyword)
288 :
289 : CALL keyword_create(keyword, __LOCATION__, name="FFTW_PLAN_TYPE", &
290 : description="FFTW can have improved performance if it is allowed to plan with "// &
291 : "explicit measurements which strategy is best for a given FFT. "// &
292 : "While a plan based on measurements is generally faster, "// &
293 : "differences in machine load will lead to different plans for the same input file, "// &
294 : "and thus numerics for the FFTs will be slightly different from run to run. "// &
295 : "PATIENT planning is recommended for long ab initio MD runs.", &
296 : usage="FFTW_PLAN_TYPE PATIENT", &
297 : citations=[Frigo2005], &
298 : default_i_val=fftw_plan_estimate, &
299 : enum_i_vals=[fftw_plan_estimate, fftw_plan_measure, fftw_plan_patient, fftw_plan_exhaustive], &
300 : enum_c_vals=s2a("ESTIMATE", &
301 : "MEASURE", &
302 : "PATIENT", &
303 : "EXHAUSTIVE"), &
304 : enum_desc=s2a("Quick estimate, no runtime measurements.", &
305 : "Quick measurement, somewhat faster FFTs.", &
306 : "Measurements trying a wider range of possibilities.", &
307 32854 : "Measurements trying all possibilities - use with caution."))
308 16427 : CALL section_add_keyword(section, keyword)
309 16427 : CALL keyword_release(keyword)
310 :
311 : CALL keyword_create(keyword, __LOCATION__, name="EXTENDED_FFT_LENGTHS", &
312 : description="Use fft library specific values for the allows number of points in FFTs. "// &
313 : "The default is to use the internal FFT lengths. For external fft libraries this may "// &
314 : "create an error at the external library level, because the length provided by cp2k is "// &
315 : "not supported by the external library. In this case switch on this keyword "// &
316 : "to obtain, with certain fft libraries, lengths matching the external fft library lengths, or "// &
317 : "larger allowed grids, or grids that more precisely match a given cutoff. "// &
318 : "IMPORTANT NOTE: in this case, the actual grids used in CP2K depends on the FFT library. "// &
319 : "A change of FFT library must therefore be considered equivalent to a change of basis, "// &
320 : "which implies a change of total energy.", &
321 : usage="EXTENDED_FFT_LENGTHS", &
322 16427 : default_l_val=.FALSE., lone_keyword_l_val=.TRUE.)
323 16427 : CALL section_add_keyword(section, keyword)
324 16427 : CALL keyword_release(keyword)
325 :
326 : CALL keyword_create(keyword, __LOCATION__, name="FFT_POOL_SCRATCH_LIMIT", &
327 : description="Limits the memory usage of the FFT scratch pool, potentially reducing efficiency a bit", &
328 16427 : usage="FFT_POOL_SCRATCH_LIMIT {INTEGER}", default_i_val=15)
329 16427 : CALL section_add_keyword(section, keyword)
330 16427 : CALL keyword_release(keyword)
331 :
332 : CALL keyword_create(keyword, __LOCATION__, name="ALLTOALL_SGL", &
333 : description="All-to-all communication (FFT) should use single precision", &
334 : usage="ALLTOALL_SGL YES", &
335 16427 : default_l_val=.FALSE., lone_keyword_l_val=.TRUE.)
336 16427 : CALL section_add_keyword(section, keyword)
337 16427 : CALL keyword_release(keyword)
338 :
339 : CALL keyword_create(keyword, __LOCATION__, name="PRINT_LEVEL", &
340 : variants=["IOLEVEL"], &
341 : description="How much output is written out.", &
342 : usage="PRINT_LEVEL HIGH", &
343 : default_i_val=medium_print_level, enum_c_vals= &
344 : s2a("SILENT", "LOW", "MEDIUM", "HIGH", "DEBUG"), &
345 : enum_desc=s2a("Almost no output", &
346 : "Little output", "Quite some output", "Lots of output", &
347 : "Everything is written out, useful for debugging purposes only"), &
348 : enum_i_vals=[silent_print_level, low_print_level, medium_print_level, &
349 32854 : high_print_level, debug_print_level])
350 16427 : CALL section_add_keyword(section, keyword)
351 16427 : CALL keyword_release(keyword)
352 :
353 : CALL keyword_create( &
354 : keyword, __LOCATION__, name="PROGRAM_NAME", &
355 : variants=["PROGRAM"], &
356 : description="Which program should be run", &
357 : usage="PROGRAM_NAME {STRING}", &
358 : enum_c_vals=s2a("ATOM", "FARMING", "TEST", "CP2K", "OPTIMIZE_INPUT", "OPTIMIZE_BASIS", "TMC", "MC_ANALYSIS", "SWARM"), &
359 : enum_desc=s2a("Runs single atom calculations", &
360 : "Runs N independent jobs in a single run", &
361 : "Do some benchmarking and testing", &
362 : "Runs one of the CP2K package", &
363 : "A tool to optimize parameters in a CP2K input", &
364 : "A tool to create a MOLOPT or ADMM basis for a given set"// &
365 : " of training structures", &
366 : "Runs Tree Monte Carlo algorithm using additional input file(s)", &
367 : "Runs (Tree) Monte Carlo trajectory file analysis", &
368 : "Runs swarm based calculation"), &
369 : enum_i_vals=[do_atom, do_farming, do_test, do_cp2k, do_optimize_input, &
370 : do_opt_basis, do_tree_mc, do_tree_mc_ana, do_swarm], &
371 32854 : default_i_val=do_cp2k)
372 16427 : CALL section_add_keyword(section, keyword)
373 16427 : CALL keyword_release(keyword)
374 :
375 : CALL keyword_create(keyword, __LOCATION__, name="PROJECT_NAME", &
376 : variants=["PROJECT"], &
377 : description="Name of the project (used to build the name of the "// &
378 : "trajectory, and other files generated by the program)", &
379 : usage="PROJECT_NAME {STRING}", &
380 32854 : default_c_val="PROJECT")
381 16427 : CALL section_add_keyword(section, keyword)
382 16427 : CALL keyword_release(keyword)
383 :
384 : CALL keyword_create(keyword, __LOCATION__, name="OUTPUT_FILE_NAME", &
385 : description="Name of the output file. "// &
386 : "Relevant only if automatically started (through farming for example). "// &
387 : "If empty uses the project name as basis for it.", &
388 16427 : usage="OUTPUT_FILE_NAME {filename}", default_lc_val="")
389 16427 : CALL section_add_keyword(section, keyword)
390 16427 : CALL keyword_release(keyword)
391 :
392 : CALL keyword_create( &
393 : keyword, __LOCATION__, name="RUN_TYPE", &
394 : description="Selects the top-level task CP2K should run, such as an energy, "// &
395 : "energy-and-force, molecular dynamics, geometry optimization, or response calculation.", &
396 : usage="RUN_TYPE MD", &
397 : default_i_val=energy_force_run, &
398 : citations=[Ceriotti2014, Schonherr2014], &
399 : enum_c_vals=s2a("NONE", "ENERGY", "ENERGY_FORCE", "MD", "GEO_OPT", &
400 : "MC", "DEBUG", "BSSE", "LR", "PINT", "VIBRATIONAL_ANALYSIS", &
401 : "BAND", "CELL_OPT", "WFN_OPT", "WAVEFUNCTION_OPTIMIZATION", &
402 : "MOLECULAR_DYNAMICS", "GEOMETRY_OPTIMIZATION", "MONTECARLO", &
403 : "LINEAR_RESPONSE", "NORMAL_MODES", "RT_PROPAGATION", &
404 : "EHRENFEST_DYN", "TAMC", "TMC", "DRIVER", "NEGF", "MIMIC", "RTP", &
405 : "MTLR"), &
406 : enum_i_vals=[none_run, energy_run, energy_force_run, mol_dyn_run, &
407 : geo_opt_run, mon_car_run, debug_run, &
408 : bsse_run, linear_response_run, pint_run, vib_anal, do_band, &
409 : cell_opt_run, energy_run, energy_run, mol_dyn_run, geo_opt_run, &
410 : mon_car_run, linear_response_run, &
411 : vib_anal, real_time_propagation, ehrenfest, do_tamc, tree_mc_run, &
412 : driver_run, negf_run, mimic_run, real_time_propagation, mtlr_run], &
413 : enum_desc=s2a("Perform no tasks", "Computes energy", "Computes energy and forces", &
414 : "Molecular Dynamics", "Geometry Optimization", "Monte Carlo", &
415 : "Performs a Debug analysis", "Basis set superposition error", "Linear Response", &
416 : "Path integral", "Vibrational analysis", "Band methods", &
417 : "Cell optimization. Both cell vectors and atomic positions are optimised.", &
418 : "Alias for ENERGY", "Alias for ENERGY", "Alias for MD", "Alias for GEO_OPT", &
419 : "Alias for MC", "Alias for LR", "Alias for VIBRATIONAL_ANALYSIS", &
420 : "Real Time propagation run (fixed ionic positions)", &
421 : "Ehrenfest dynamics (using real time propagation of the wavefunction)", &
422 : "Temperature Accelerated Monte Carlo (TAMC)", &
423 : "Tree Monte Carlo (TMC), a pre-sampling MC algorithm", &
424 : "i-PI driver mode", &
425 : "Non-equilibrium Green's function method", &
426 : "Run as a client in a simulation through the MiMiC framework", &
427 : "Alias for RT_PROPAGATION", &
428 49281 : "Minimum tracking linear response calculation for Hubbard U and Hund's J"))
429 16427 : CALL section_add_keyword(section, keyword)
430 16427 : CALL keyword_release(keyword)
431 :
432 : CALL keyword_create(keyword, __LOCATION__, name="WALLTIME", &
433 : variants=["WALLTI"], &
434 : description="Maximum execution time for this run. Time in seconds or in HH:MM:SS.", &
435 32854 : usage="WALLTIME {real} or {HH:MM:SS}", default_lc_val="")
436 16427 : CALL section_add_keyword(section, keyword)
437 16427 : CALL keyword_release(keyword)
438 :
439 : CALL keyword_create(keyword, __LOCATION__, name="ECHO_INPUT", &
440 : description="If the input should be echoed to the output with all the "// &
441 : "defaults made explicit", &
442 16427 : usage="ECHO_INPUT NO", default_l_val=.FALSE., lone_keyword_l_val=.TRUE.)
443 16427 : CALL section_add_keyword(section, keyword)
444 16427 : CALL keyword_release(keyword)
445 :
446 : CALL keyword_create(keyword, __LOCATION__, name="ECHO_ALL_HOSTS", &
447 : description="Echo a list of hostname and pid for all MPI processes.", &
448 16427 : usage="ECHO_ALL_HOSTS NO", default_l_val=.FALSE., lone_keyword_l_val=.TRUE.)
449 16427 : CALL section_add_keyword(section, keyword)
450 16427 : CALL keyword_release(keyword)
451 :
452 : CALL keyword_create(keyword, __LOCATION__, name="ENABLE_MPI_IO", &
453 : description="Enable MPI parallelization for all supported I/O routines "// &
454 : "Currently, only cube file writer/reader routines use MPI I/O. Disabling "// &
455 : "this flag might speed up calculations dominated by I/O.", &
456 16427 : usage="ENABLE_MPI_IO FALSE", default_l_val=.TRUE., lone_keyword_l_val=.TRUE.)
457 16427 : CALL section_add_keyword(section, keyword)
458 16427 : CALL keyword_release(keyword)
459 :
460 : CALL keyword_create(keyword, __LOCATION__, name="TRACE", &
461 : description="If a debug trace of the execution of the program should be written", &
462 : usage="TRACE", &
463 16427 : default_l_val=.FALSE., lone_keyword_l_val=.TRUE.)
464 16427 : CALL section_add_keyword(section, keyword)
465 16427 : CALL keyword_release(keyword)
466 :
467 : CALL keyword_create(keyword, __LOCATION__, name="TRACE_MASTER", &
468 : description="For parallel TRACEd runs: only the master node writes output.", &
469 : usage="TRACE_MASTER", &
470 16427 : default_l_val=.TRUE., lone_keyword_l_val=.TRUE.)
471 16427 : CALL section_add_keyword(section, keyword)
472 16427 : CALL keyword_release(keyword)
473 :
474 : CALL keyword_create( &
475 : keyword, __LOCATION__, name="TRACE_MAX", &
476 : description="Limit the total number a given subroutine is printed in the trace. Accounting is not influenced.", &
477 16427 : usage="TRACE_MAX 100", default_i_val=HUGE(0))
478 16427 : CALL section_add_keyword(section, keyword)
479 16427 : CALL keyword_release(keyword)
480 :
481 : CALL keyword_create( &
482 : keyword, __LOCATION__, name="TRACE_ROUTINES", &
483 : description="A list of routines to trace. If left empty all routines are traced. Accounting is not influenced.", &
484 : usage="TRACE_ROUTINES {routine_name1} {routine_name2} ...", type_of_var=char_t, &
485 16427 : n_var=-1)
486 16427 : CALL section_add_keyword(section, keyword)
487 16427 : CALL keyword_release(keyword)
488 :
489 : CALL keyword_create( &
490 : keyword, __LOCATION__, name="FLUSH_SHOULD_FLUSH", &
491 : description="Flush output regularly, enabling this option might degrade performance significantly on certain machines.", &
492 : usage="FLUSH_SHOULD_FLUSH", &
493 16427 : default_l_val=.TRUE., lone_keyword_l_val=.TRUE.)
494 16427 : CALL section_add_keyword(section, keyword)
495 16427 : CALL keyword_release(keyword)
496 :
497 : CALL keyword_create(keyword, __LOCATION__, name="CALLGRAPH", &
498 : description="At the end of the run write a callgraph to file, "// &
499 : "which contains detailed timing informations. "// &
500 : "This callgraph can be viewed e.g. with the open-source program kcachegrind.", &
501 : usage="CALLGRAPH {NONE|MASTER|ALL}", &
502 : default_i_val=CALLGRAPH_NONE, lone_keyword_i_val=CALLGRAPH_MASTER, &
503 : enum_c_vals=s2a("NONE", "MASTER", "ALL"), &
504 : enum_desc=s2a("No callgraph gets written", &
505 : "Only the master process writes his callgraph", &
506 : "All processes write their callgraph (into a separate files)."), &
507 16427 : enum_i_vals=[CALLGRAPH_NONE, CALLGRAPH_MASTER, CALLGRAPH_ALL])
508 16427 : CALL section_add_keyword(section, keyword)
509 16427 : CALL keyword_release(keyword)
510 :
511 : CALL keyword_create(keyword, __LOCATION__, name="CALLGRAPH_FILE_NAME", &
512 : description="Name of the callgraph file, which is written at the end of the run. "// &
513 : "If not specified the project name will be used as filename.", &
514 16427 : usage="CALLGRAPH_FILE_NAME {filename}", default_lc_val="")
515 16427 : CALL section_add_keyword(section, keyword)
516 16427 : CALL keyword_release(keyword)
517 :
518 : CALL keyword_create(keyword, __LOCATION__, name="SEED", &
519 : description="Initial seed for the global (pseudo)random number generator "// &
520 : "to create a stream of normally Gaussian distributed random numbers. "// &
521 : "Exactly 1 or 6 positive integer values are expected. A single value is "// &
522 : "replicated to fill up the full seed array with 6 numbers.", &
523 : n_var=-1, &
524 : type_of_var=integer_t, &
525 : usage="SEED {INTEGER} .. {INTEGER}", &
526 16427 : default_i_vals=[2000])
527 16427 : CALL section_add_keyword(section, keyword)
528 16427 : CALL keyword_release(keyword)
529 :
530 : CALL keyword_create(keyword, __LOCATION__, name="SAVE_MEM", &
531 : description="Some sections of the input structure are deallocated when not needed,"// &
532 : " and reallocated only when used. This reduces the required maximum memory.", &
533 : usage="SAVE_MEM", &
534 16427 : default_l_val=.FALSE., lone_keyword_l_val=.TRUE.)
535 16427 : CALL section_add_keyword(section, keyword)
536 16427 : CALL keyword_release(keyword)
537 :
538 : CALL cp_print_key_section_create(print_key, __LOCATION__, "TIMINGS", description= &
539 : "Controls the printing of the timing report at the end of CP2K execution", &
540 16427 : print_level=silent_print_level, filename="__STD_OUT__")
541 :
542 : CALL keyword_create(keyword, __LOCATION__, name="THRESHOLD", &
543 : description="Specify % of CPUTIME above which the contribution will be inserted in the"// &
544 : " final timing report (e.g. 0.02 = 2%)", &
545 : usage="THRESHOLD {REAL}", &
546 16427 : default_r_val=0.02_dp)
547 16427 : CALL section_add_keyword(print_key, keyword)
548 16427 : CALL keyword_release(keyword)
549 :
550 : CALL keyword_create(keyword, __LOCATION__, name="SORT_BY_SELF_TIME", &
551 : description="Sort the final timing report by the average self (exclusive) time instead of the "// &
552 : "total (inclusive) time of a routine", &
553 : usage="SORT_BY_SELF_TIME on", &
554 16427 : default_l_val=.FALSE., lone_keyword_l_val=.TRUE.)
555 16427 : CALL section_add_keyword(print_key, keyword)
556 16427 : CALL keyword_release(keyword)
557 :
558 : CALL keyword_create(keyword, __LOCATION__, name="REPORT_MAXLOC", &
559 : description="Report the rank with the slowest maximum self timing."// &
560 : " Can be used to debug hard- or software."// &
561 : " Also enables ECHO_ALL_HOSTS to link rank to hostname.", &
562 : usage="REPORT_MAXLOC on", &
563 16427 : default_l_val=.FALSE., lone_keyword_l_val=.TRUE.)
564 16427 : CALL section_add_keyword(print_key, keyword)
565 16427 : CALL keyword_release(keyword)
566 :
567 : CALL keyword_create(keyword, __LOCATION__, name="TIME_MPI", &
568 : description="Include message_passing calls in the timing report (useful with CALLGRAPH).", &
569 : usage="TIME_MPI .FALSE.", &
570 16427 : default_l_val=.TRUE., lone_keyword_l_val=.TRUE.)
571 16427 : CALL section_add_keyword(print_key, keyword)
572 16427 : CALL keyword_release(keyword)
573 :
574 : CALL keyword_create(keyword, __LOCATION__, name="TIMINGS_LEVEL", &
575 : description="Specify the level of timings report. "// &
576 : "Possible values are: 0 (report only CP2K root timer), 1 (all timers).", &
577 : usage="TIMINGS_LEVEL 1", &
578 16427 : default_i_val=default_timings_level, lone_keyword_i_val=default_timings_level)
579 16427 : CALL section_add_keyword(print_key, keyword)
580 16427 : CALL keyword_release(keyword)
581 :
582 16427 : CALL section_add_subsection(section, print_key)
583 16427 : CALL section_release(print_key)
584 :
585 : CALL cp_print_key_section_create(print_key, __LOCATION__, "REFERENCES", description= &
586 : "Controls the printing of the references relevant to the calculations performed", &
587 16427 : print_level=silent_print_level, filename="__STD_OUT__")
588 16427 : CALL section_add_subsection(section, print_key)
589 16427 : CALL section_release(print_key)
590 :
591 : CALL cp_print_key_section_create(print_key, __LOCATION__, "PROGRAM_RUN_INFO", &
592 : description="controls the printing of initialization controlled by the global section", &
593 16427 : print_level=silent_print_level, add_last=add_last_numeric, filename="__STD_OUT__")
594 16427 : CALL section_add_subsection(section, print_key)
595 16427 : CALL section_release(print_key)
596 :
597 : CALL cp_print_key_section_create(print_key, __LOCATION__, "PRINT", description= &
598 : "controls the printing of physical and mathematical constants", &
599 16427 : print_level=medium_print_level, filename="__STD_OUT__")
600 :
601 : CALL keyword_create(keyword, __LOCATION__, name="BASIC_DATA_TYPES", &
602 : description="Controls the printing of the basic data types.", &
603 16427 : default_l_val=.FALSE., lone_keyword_l_val=.TRUE.)
604 16427 : CALL section_add_keyword(print_key, keyword)
605 16427 : CALL keyword_release(keyword)
606 : CALL keyword_create(keyword, __LOCATION__, name="physcon", &
607 : description="if the printkey is active prints the physical constants", &
608 16427 : default_l_val=.TRUE., lone_keyword_l_val=.TRUE.)
609 16427 : CALL section_add_keyword(print_key, keyword)
610 16427 : CALL keyword_release(keyword)
611 : CALL keyword_create(keyword, __LOCATION__, name="SPHERICAL_HARMONICS", &
612 : description="if the printkey is active prints the spherical harmonics", &
613 16427 : default_i_val=-1, type_of_var=integer_t)
614 16427 : CALL section_add_keyword(print_key, keyword)
615 16427 : CALL keyword_release(keyword)
616 : CALL keyword_create(keyword, __LOCATION__, name="RNG_MATRICES", &
617 : description="Prints the transformation matrices used by the random number generator", &
618 : default_l_val=.FALSE., &
619 16427 : lone_keyword_l_val=.TRUE.)
620 16427 : CALL section_add_keyword(print_key, keyword)
621 16427 : CALL keyword_release(keyword)
622 : CALL keyword_create(keyword, __LOCATION__, name="RNG_CHECK", &
623 : description="Performs a check of the global (pseudo)random "// &
624 : "number generator (RNG) and prints the result", &
625 : default_l_val=.FALSE., &
626 16427 : lone_keyword_l_val=.TRUE.)
627 16427 : CALL section_add_keyword(print_key, keyword)
628 16427 : CALL keyword_release(keyword)
629 : CALL keyword_create(keyword, __LOCATION__, name="GLOBAL_GAUSSIAN_RNG", &
630 : description="Prints the initial status of the global Gaussian "// &
631 : "(pseudo)random number stream which is mostly used for "// &
632 : "the velocity initialization", &
633 : default_l_val=.FALSE., &
634 16427 : lone_keyword_l_val=.TRUE.)
635 16427 : CALL section_add_keyword(print_key, keyword)
636 16427 : CALL keyword_release(keyword)
637 :
638 16427 : CALL section_add_subsection(section, print_key)
639 16427 : CALL section_release(print_key)
640 16427 : NULLIFY (sub_section)
641 : ! FM section
642 16427 : CALL create_fm_section(sub_section)
643 16427 : CALL section_add_subsection(section, sub_section)
644 16427 : CALL section_release(sub_section)
645 : ! DBCSR options
646 16427 : CALL create_dbcsr_section(sub_section)
647 16427 : CALL section_add_subsection(section, sub_section)
648 16427 : CALL section_release(sub_section)
649 : ! FM diagonalization redistribution rules
650 16427 : CALL create_fm_diag_rules_section(sub_section)
651 16427 : CALL section_add_subsection(section, sub_section)
652 16427 : CALL section_release(sub_section)
653 : ! Grid library
654 16427 : CALL create_grid_section(sub_section)
655 16427 : CALL section_add_subsection(section, sub_section)
656 16427 : CALL section_release(sub_section)
657 :
658 16427 : END SUBROUTINE create_global_section
659 :
660 : ! **************************************************************************************************
661 : !> \brief Creates the dbcsr section for configuring FM
662 : !> \param section ...
663 : !> \date 2011-04-05
664 : !> \author Florian Schiffmann
665 : ! **************************************************************************************************
666 16427 : SUBROUTINE create_fm_section(section)
667 : TYPE(section_type), POINTER :: section
668 :
669 : INTEGER :: default_matmul
670 : TYPE(keyword_type), POINTER :: keyword
671 :
672 16427 : CPASSERT(.NOT. ASSOCIATED(section))
673 : CALL section_create(section, __LOCATION__, name="FM", &
674 : description="Configuration options for the full matrices.", &
675 16427 : n_keywords=1, n_subsections=0, repeats=.FALSE.)
676 :
677 16427 : NULLIFY (keyword)
678 :
679 : CALL keyword_create(keyword, __LOCATION__, name="NROW_BLOCKS", &
680 : description="Defines the number of rows per scalapack block in "// &
681 : "the creation of block cyclic dense matrices. "// &
682 : "Use an internal default if zero or negative.", &
683 16427 : default_i_val=cp_fm_struct_get_nrow_block())
684 16427 : CALL section_add_keyword(section, keyword)
685 16427 : CALL keyword_release(keyword)
686 :
687 : CALL keyword_create(keyword, __LOCATION__, name="NCOL_BLOCKS", &
688 : description="Defines the number of columns per scalapack block in "// &
689 : "the creation of vlock cyclic dense matrices. "// &
690 : "Use an internal default if zero or negative.", &
691 16427 : default_i_val=cp_fm_struct_get_ncol_block())
692 16427 : CALL section_add_keyword(section, keyword)
693 16427 : CALL keyword_release(keyword)
694 :
695 : CALL keyword_create(keyword, __LOCATION__, name="FORCE_BLOCK_SIZE", &
696 : description="Ensure for small matrices that the layout is compatible "// &
697 : "with bigger ones, i.e. no subdivision is performed (can break LAPACK).", &
698 : usage="FORCE_BLOCK_SIZE", &
699 16427 : default_l_val=.FALSE., lone_keyword_l_val=.TRUE.)
700 16427 : CALL section_add_keyword(section, keyword)
701 16427 : CALL keyword_release(keyword)
702 :
703 : #if defined(__COSMA)
704 16427 : default_matmul = do_cosma
705 : #else
706 : default_matmul = do_scalapack
707 : #endif
708 :
709 : CALL keyword_create(keyword, __LOCATION__, name="TYPE_OF_MATRIX_MULTIPLICATION", &
710 : description="Allows to switch between scalapack pxgemm and COSMA pxgemm. "// &
711 : "COSMA reduces the communication costs but increases the memory demands. "// &
712 : "The performance of Scalapack's pxgemm on GPU's depends "// &
713 : "crucially on the BLOCK_SIZES. Make sure optimized kernels are available.", &
714 : default_i_val=default_matmul, &
715 : enum_i_vals=[do_scalapack, do_scalapack, do_cosma], &
716 : enum_c_vals=s2a("SCALAPACK", "PDGEMM", "COSMA"), &
717 : enum_desc=s2a("Standard ScaLAPACK pdgemm", &
718 : "Alias for ScaLAPACK", &
719 16427 : "COSMA is employed. See <https://github.com/eth-cscs/COSMA>."))
720 16427 : CALL section_add_keyword(section, keyword)
721 16427 : CALL keyword_release(keyword)
722 :
723 : !
724 16427 : END SUBROUTINE create_fm_section
725 : ! **************************************************************************************************
726 : !> \brief Creates the input section used to define the heuristic rules which determine if
727 : !> a FM matrix should be redistributed before diagonalizing it.
728 : !> \param section the input section to create
729 : !> \author Nico Holmberg [01.2018]
730 : ! **************************************************************************************************
731 16427 : SUBROUTINE create_fm_diag_rules_section(section)
732 : TYPE(section_type), POINTER :: section
733 :
734 : TYPE(keyword_type), POINTER :: keyword
735 :
736 16427 : CPASSERT(.NOT. ASSOCIATED(section))
737 : CALL section_create(section, __LOCATION__, name="FM_DIAG_SETTINGS", &
738 : description="This section defines a set of heuristic rules which are "// &
739 : "used to calculate the optimal number of CPUs, M, needed to diagonalize a "// &
740 : "full matrix distributed on N processors (FM type). If M < N, the matrix "// &
741 : "is redistributed onto M processors before it is diagonalized. "// &
742 : "The optimal value is calculate according to M = ((K+a*x-1)/(a*x))*a, "// &
743 : "where K is the size of the matrix, and {a, x} are integers defined below. "// &
744 : "The default values have been selected based on timings on a Cray XE6. "// &
745 : "Supports diagonalization libraries SL and ELPA (see keyword ELPA_FORCE_REDISTRIBUTE).", &
746 16427 : n_keywords=3, n_subsections=0, repeats=.FALSE.)
747 :
748 16427 : NULLIFY (keyword)
749 :
750 : CALL keyword_create(keyword, __LOCATION__, name="PARAMETER_A", &
751 : description="Parameter used for defining the rule which determines the optimal "// &
752 : "number of CPUs needed to diagonalize a full distributed matrix. The optimal "// &
753 : "number of CPUs will be an integer multiple of this variable.", &
754 : usage="PARAMETER_A 4", type_of_var=integer_t, &
755 16427 : default_i_val=4)
756 16427 : CALL section_add_keyword(section, keyword)
757 16427 : CALL keyword_release(keyword)
758 :
759 : CALL keyword_create(keyword, __LOCATION__, name="PARAMETER_X", &
760 : description="Parameter used for defining the rule which determines the optimal "// &
761 : "number of CPUs needed to diagonalize a full distributed matrix. The optimal "// &
762 : "number of CPUs will be roughly proportional to this value.", &
763 : usage="PARAMETER_X 60", type_of_var=integer_t, &
764 16427 : default_i_val=60)
765 16427 : CALL section_add_keyword(section, keyword)
766 16427 : CALL keyword_release(keyword)
767 :
768 : CALL keyword_create(keyword, __LOCATION__, name="PRINT_FM_REDISTRIBUTE", &
769 : description="Controls printing of information related to this section. For each "// &
770 : "diagonalized matrix, prints the size of the matrix, the optimal number of CPUs, "// &
771 : "as well as notifies if the matrix was redistributed. Useful for testing.", &
772 : usage="PRINT_FM_REDISTRIBUTE", type_of_var=logical_t, &
773 16427 : default_l_val=.FALSE., lone_keyword_l_val=.TRUE.)
774 16427 : CALL section_add_keyword(section, keyword)
775 16427 : CALL keyword_release(keyword)
776 :
777 : CALL keyword_create(keyword, __LOCATION__, name="ELPA_FORCE_REDISTRIBUTE", &
778 : description="Controls how to perform redistribution when ELPA is used for diagonalization. "// &
779 : "By default, redistribution is always performed using the defined rules. "// &
780 : "By turning off this keyword, matrices are redistributed only to prevent crashes in the ELPA "// &
781 : "library which happens when the original matrix is distributed over too many processors.", &
782 : usage="ELPA_FORCE_REDISTRIBUTE", type_of_var=logical_t, &
783 16427 : default_l_val=.TRUE., lone_keyword_l_val=.TRUE.)
784 16427 : CALL section_add_keyword(section, keyword)
785 16427 : CALL keyword_release(keyword)
786 :
787 16427 : END SUBROUTINE create_fm_diag_rules_section
788 :
789 : ! **************************************************************************************************
790 : !> \brief Creates the section for configuring the grid library
791 : !> \param section ...
792 : !> \author Ole Schuett
793 : ! **************************************************************************************************
794 16427 : SUBROUTINE create_grid_section(section)
795 : TYPE(section_type), POINTER :: section
796 :
797 : TYPE(keyword_type), POINTER :: keyword
798 :
799 16427 : CPASSERT(.NOT. ASSOCIATED(section))
800 : CALL section_create(section, __LOCATION__, name="GRID", &
801 : description="Configuration options for the grid library, "// &
802 : "which performs e.g. the collocate and integrate of the GPW method.", &
803 16427 : n_keywords=1, n_subsections=0, repeats=.FALSE.)
804 :
805 16427 : NULLIFY (keyword)
806 : CALL keyword_create(keyword, __LOCATION__, name="BACKEND", &
807 : description="Selects the backed used by the grid library.", &
808 : default_i_val=GRID_BACKEND_AUTO, &
809 : enum_i_vals=[GRID_BACKEND_AUTO, GRID_BACKEND_REF, GRID_BACKEND_CPU, &
810 : GRID_BACKEND_DGEMM, GRID_BACKEND_GPU], &
811 : enum_c_vals=s2a("AUTO", "REFERENCE", "CPU", "DGEMM", "GPU"), &
812 : enum_desc=s2a("Let the grid library pick the backend automatically", &
813 : "Reference backend implementation", &
814 : "Optimized CPU backend", &
815 : "Alternative CPU backend based on DGEMM", &
816 16427 : "GPU backend optimized for NVIDIA and AMD GPU"))
817 16427 : CALL section_add_keyword(section, keyword)
818 16427 : CALL keyword_release(keyword)
819 :
820 : CALL keyword_create(keyword, __LOCATION__, name="VALIDATE", &
821 : description="When enabled the reference backend is run in shadow mode "// &
822 : "and its results are compared with those from the selected backend. "// &
823 : "If the two results differ by too much then the calculation is aborted.", &
824 16427 : default_l_val=.FALSE., lone_keyword_l_val=.TRUE.)
825 16427 : CALL section_add_keyword(section, keyword)
826 16427 : CALL keyword_release(keyword)
827 :
828 : CALL keyword_create(keyword, __LOCATION__, name="APPLY_CUTOFF", &
829 : description="When enabled the cpu backend "// &
830 : "apply a spherical cutoff on the top of the cube. "// &
831 : "There is a performance penalty using it in "// &
832 : "combination with the cpu backend but it is on by "// &
833 : "default for the regtests", default_l_val=.TRUE., &
834 16427 : lone_keyword_l_val=.TRUE.)
835 16427 : CALL section_add_keyword(section, keyword)
836 16427 : CALL keyword_release(keyword)
837 :
838 16427 : END SUBROUTINE create_grid_section
839 :
840 : END MODULE input_cp2k_global
|