Recent changes to Trilinos are causing segfaults when using OpenMP with GCC 7.2.0
Created by: jrood-nrel
Steps to Reproduce
Running the regression tests for Nalu (https://my.cdash.org/index.php?project=Nalu) on OSX 10.12.6 using GCC 7.2.0 with OpenMP enabled in the latest (052a35cc for example) Trilinos can reproduce this issue. OpenMP runtime options used are:
export OMP_NUM_THREADS=1
export OMP_PROC_BIND=false
Description of Error
60/78 of the Nalu regression tests fail due to segfaults either indicating Kokkos, or a nondescript segfault. This arose sometime between January 2-4 where using an earlier version of Trilinos from Jan 2, or turning off OpenMP do not cause the segfaults.
Below is the listing of the most descriptive error:
naluX(54561,0x1133763c0) malloc: *** mach_vm_map(size=231034881392640) failed (error code=3)
*** error: can't allocate region
*** set a breakpoint in malloc_error_break to debug
Kokkos::HostSpace::allocate[ STD_MALLOC ]( 231034881389296 ) FAILED NULL
terminate called after throwing an instance of 'std::runtime_error'
what(): Kokkos::HostSpace::allocate[ STD_MALLOC ]( 231034881389296 ) FAILED NULL