windows - Stackoverflow error in Fortran with OpenMP -
i trying run openmp fortran code using intel fortran.
at beginning of code allocate 7 large matrices:
! allocate real, allocatable :: m1(:,:,:,:,:,:,:,:,:) real, allocatable :: m2(:,:,:,:,:,:,:,:,:) real, allocatable :: m3(:,:,:,:,:,:,:,:,:) real, allocatable :: m4(:,:,:,:,:,:,:,:,:) real, allocatable :: m5(:,:,:,:,:,:,:,:,:) real, allocatable :: m6(:,:,:,:,:,:,:,:,:) real, allocatable :: m7(:,:,:,:,:,:,:,:,:) allocate(m1(2,161,20,2,2,21,30,2,2)) allocate(m2(2,161,20,2,2,21,30,2,2)) allocate(m3(2,161,20,2,2,21,30,2,2)) allocate(m4(2,161,20,2,2,21,30,2,2)) allocate(m5(2,161,20,2,2,21,30,2,2)) allocate(m6(1,161,20,2,2,21,30,2,2)) allocate(m7(1,161,20,2,2,21,30,2,2))
i run code big parallelized loop.
!$omp parallel default(private) shared(m1, m2, m3, m4, m5, m7, someothervariables)
some of matrices m1
m7
indeed used in subroutines, might lead creation of temporary arrays. in case code runs fine if done serially. crashes following error if run openmp regardless of number of cores using:
the machine using has 128gb
of ram. not sure if limiting factor or not. if decrease last index of each matrix 1, code runs fine in 24 cores. given increasing size of memory used 2, should run in 12 cores, @ least no?
maybe doing big error, or perhaps fortran option needs changed ...
Comments
Post a Comment