You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
gfortran9 flags an out-of-bounds access in (among others) TESTING/EIG/zhet21.f line 304 (do loop on J running from 1 to N-1, accessing array element U(1,J-1) ...ouch). Not sure if this is the actual and only cause of this issue yet though...
EDIT: my observation is unrelated (and I had actually missed that you already opened #333 for it) xeigtstz tries to allocate around 10MB on the stack for the NEP tests as already noted in OpenMathLib/OpenBLAS#1645
I believe it is allocatable arrays that end up on the stack due to the 'recursive' option (required for thread safety) but I have not yet managed to find a working solution.
@weslleyspereira will try to only compile zchkee.f without the -frecursive option. So all files (in particular liblapack.a) will be compiled using the -frecursive option, but zchkee.f will be compiled without the -frecursive option. We think/hope that'll do the trick. We will test. I think it is important to compile LAPACK with -frecursive. Now zchkee.f can be compiled without. That'll be just fine. CMake and make will look a little uglier. I think we are long overdue for a new test suite, so we suggest that we do it ugly for now, and focus on a new test suite.
Worked for me as long as I did not also use OpenMP, but the latter unfortunately implies -frecursive
(Can use filter_out in Makefile to strip frecursive/Mrecursive from FFLAGS, so not much new uglyness)
Activity
Dichloromethane commentedon Apr 19, 2019
Seems to be a duplicate of #276 .
martin-frbg commentedon Apr 19, 2019
gfortran9 flags an out-of-bounds access in (among others) TESTING/EIG/zhet21.f line 304 (do loop on J running from 1 to N-1, accessing array element U(1,J-1) ...ouch). Not sure if this is the actual and only cause of this issue yet though...
EDIT: my observation is unrelated (and I had actually missed that you already opened #333 for it) xeigtstz tries to allocate around 10MB on the stack for the NEP tests as already noted in OpenMathLib/OpenBLAS#1645
pocket-98 commentedon Jun 23, 2020
setting
ulimit -s 16384instead of the default 8192 fixed this issue for me as wellweslleyspereira commentedon Feb 17, 2021
Same issue here #85.
christoph-conrads commentedon Feb 17, 2021
The go-to solution for this issue has been to increase the stack limit but since this is a test, would heap allocation not be a better solution?
martin-frbg commentedon Feb 17, 2021
I believe it is allocatable arrays that end up on the stack due to the 'recursive' option (required for thread safety) but I have not yet managed to find a working solution.
langou commentedon Feb 17, 2021
@weslleyspereira will try to only compile zchkee.f without the -frecursive option. So all files (in particular liblapack.a) will be compiled using the -frecursive option, but zchkee.f will be compiled without the -frecursive option. We think/hope that'll do the trick. We will test. I think it is important to compile LAPACK with -frecursive. Now zchkee.f can be compiled without. That'll be just fine. CMake and make will look a little uglier. I think we are long overdue for a new test suite, so we suggest that we do it ugly for now, and focus on a new test suite.
martin-frbg commentedon Feb 17, 2021
Worked for me as long as I did not also use OpenMP, but the latter unfortunately implies -frecursive
(Can use filter_out in Makefile to strip frecursive/Mrecursive from FFLAGS, so not much new uglyness)
langou commentedon Feb 17, 2021
Ah. Yes, that's a potential problem.
Ah, good idea. No idea how the filter_out in Makefile works. Worse investigating. Thanks for the tip.
martin-frbg commentedon Feb 17, 2021
TESTING/EIG/Makefile, after the
include ../../make.incaddfor cmake it would be something like
string(REGEX REPLACE "-(fM)recursive" "" FFLAGS ${FFLAGS})(untested)
weslleyspereira commentedon Feb 17, 2021
Thanks @martin-frbg! I will test it now