I got the code to build with the following change to the arch file:
ifneq (0,$(IPO))
OPTFLAGS += -flto -Wl,-flto -Wno-lto-type-mismatch
else
OPTFLAGS += -fno-lto -Wl,-fno-lto -Wno-lto-type-mismatch
endif
However, now a new problem, with gcc6.3 and with 8.2 and 8.3:
/ \ *
* [ABORT] *
* \___/ Thread number has changed *
* | *
* O/| *
* /| | *
* / \ dbcsr_dist_methods.F:519 *
*******************************************************************************
===== Routine Calling Stack =====
10 dbcsr_create_new
9 build_overlap_matrix
8 build_core_hamiltonian_matrix
7 qs_energies_init_hamiltonians
6 qs_energies
5 qs_forces
4 cp_eval_at
3 geoopt_bfgs
2 cp_geo_opt
1 CP2K
For some reason it works tith the gnu toolchainj but always have this problem with gnu compilers but intel toolchain.
It seems like OMP_GET_NUM_THREADS()
always reports 1 thread though there are 4.
Ron