Repository navigation
Conversation
There were some missing ILAENV -> ILAENV2STAGE conversions missing. This commit fixes all calls to ILAENV that uses the parameters 17, 18, 19, 20 (the old ILAENV). I have also tested this for the issue reported in Reference-LAPACK#262. Signed-off-by: Nick Papior <[email protected]>
|
@zerothi please check the latest commit, I had 2 commit, the first one was missing some files the next commit was adding all the files. Let me know if this is OK for you. |
|
@haidarazzam, all I can say is that I think having recursive as a prerequisite for the subroutine is not really necessary. This was my main motivation for creating the initial PR. I.e. I would be in favour of retaining the ILAENV2STAGE method. |
|
@zerothi , why are you saying that the way it was it requires recursive? |
|
@haidarazzam, because the old |
|
I reported errata bug 61 (*), in which some large local arrays ended up being allocated on the heap using static buffers, resulting in multi-threaded calls to some calls (like ZGEEV, which eventually calls ZGEHRD) would thrash each others workspaces. The flag -frecursive is a mitigation so that these large arrays would be allocated on the stack, as a temporary fix at least for GCC. I am partial to leaving -frecursive in the Makefile, as I happen to use Lapack in multithreaded scenarios, and package maintainers apparently use the default flags without checking for thread safety.
(*) http://www.netlib.org/lapack/Errata/errata_3.4.0.html#_strong_span_class_red_bug0061_span_strong_zgehrd_f_is_overflowing
… On Aug 12, 2018, at 11:55 AM, Nick R. Papior ***@***.***> wrote:
@haidarazzam, because the old ILAENV called IPARAM2STAGE which in turn called ILAENV.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
|
@victorliu please note that This is merely discussing the recursive calls that was originally in the |
There were some missing
ILAENV->ILAENV2STAGEconversionsmissing.
This commit fixes all calls to
ILAENVthat uses the parameters17, 18, 19, 20 (the old
ILAENV).I have also tested this for the issue reported in #262.