ternaus / quest-qmc

Automatically exported from code.google.com/p/quest-qmc
2 stars 11 forks source link

Conflicts of calling OpenMP version TDM with OpenBLAS #57

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
The OpenMP parallel version has been merged into the current code.
Any changes to the main function are enclosed in:
#ifdef _OMPTDM
...
#endif 

It works well with MKL or the source code of BLAS/LAPACK used in Quest-1.4.4.

But it will occur an error:
BLAS : Program is Terminated. Because you tried to allocate too many memory 
regions.
while linking with OpenBLAS, to be figure out.

Original issue reported on code.google.com by cmji...@ucdavis.edu on 20 Oct 2014 at 1:22

GoogleCodeExporter commented 9 years ago
I am not able to reproduce it.

Could you please provide more details?

Original comment by iglovi...@gmail.com on 20 Oct 2014 at 4:43

GoogleCodeExporter commented 9 years ago
Please uncomment Line 3 in ggeom.F90:
!#include "dqmc_omp.h"

That will enable OpenMP parallel TDM.
The error occurs randomly.

Original comment by cmji...@ucdavis.edu on 20 Oct 2014 at 5:50

GoogleCodeExporter commented 9 years ago
I can reproduce the bug.

I think it is somehow related to this thread:
https://github.com/xianyi/OpenBLAS/issues/218

Original comment by iglovi...@gmail.com on 20 Oct 2014 at 6:37

GoogleCodeExporter commented 9 years ago
I tried:
1. build OpenBLAS with USE_OPENMP=1
2. export OPENBLAS_NUM_THREADS=1
But the error is still there.

Original comment by cmjiang1...@gmail.com on 20 Oct 2014 at 6:53