Skip to content

Numerical stability of gradients #1349

@foxtran

Description

@foxtran

Describe the bug
I'm playing with the system from Issue #1338 and I see after optimizations different results:

OUT.1:          | TOTAL ENERGY             -527.462303250991 Eh   |
OUT.2:          | TOTAL ENERGY             -527.462298371078 Eh   |
OUT.3:          | TOTAL ENERGY             -527.462286086233 Eh   |
OUT.mod.1:          | TOTAL ENERGY             -527.462288154660 Eh   |
OUT.mod.2:          | TOTAL ENERGY             -527.462298371078 Eh   |

To Reproduce
Steps to reproduce the behaviour:

  1. Take input from Segmentation fault when runing geometry optimisation with the binary release on linux #1338.
  2. cmake -Bbuild -DCMAKE_C_COMPILER=gcc -DCMAKE_Fortran_COMPILER=gfortran -DWITH_CPCMX=OFF -DWITH_TBLITE=OFF -DCMAKE_BUILD_TYPE=Release -DCMAKE_Fortran_FLAGS="-g"
  3. OMP_NUM_THREADS=4 OMP_PLACES=24-27 ../xtb -P 4 --gfn 2 test.xyz --opt --alpb water
  4. See description

Please provide all input and output file such that we confirm your report.

Expected behaviour
Results should be more consistent between runs.

Additional context
OUT.mod.* related to some changes for decreasing OMP stack usage. 40 kb is enough for this build.
OUT.*2 runned with 1 OMP thread.

GCC 14.1 + MKL 2024.2.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    unconfirmedThis report has not yet been confirmed by the developers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions