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
{{ message }}
Repository navigation
TSQR tests fail when compiled with -fcheck=bounds #481
Besides solving the failure of that specific test, i think it would be great to have bounds checks in the unit tests that run in the ci. Maybe a special testing target in cmake or something?
The most convenient method is probably via environment variables, e.g., env FFLAGS='-fcheck=bounds' cmake -DCMAKE_BUILD_TYPE=Debug -- ~/lapack. In the .travis-ci.yml, you could add the following lines then:
Just spoke off line with @weslleyspereira, here what we would like to do
(1) we want to add a target in Travis that will track the problem with "out of bounds" as suggested by @christoph-conrads
(2) but we want to add such a test only after fixing the actual "out of bounds" problems we already have in the code. I understand that @scr2016 is looking into the TSQR "out of bounds" problem. @weslleyspereira and I suggest that we wait on @scr2016 before editing our Travis' target.
There is a bunch of trivial bounds errors in the tests that are already reported at the -Wextra level, typically inside a DO .. J=1,N an array element J-1 is set or otherwise referenced...e.g. in cbdt03.f
line 194 | DO 20 J = 1, N
...
line 202 | WORK( J-1 ) = WORK( J-1 ) + E( J-1 )
I don't want to offend anyone, but wouldn't it be better to just revert those couple of commits and make a PR? Its clear that they would have benefitted from a few reviews.
Ah, those were the things that landed straight on master... guess I should open a new issue for "my" finds, it just looked convenient to put them here as "related".
I don't want to offend anyone, but wouldn't it be better to just revert those couple of commits and make a PR? Its clear that they would have benefitted from a few reviews.
Hi @thijssteel. Could you please provide the hash codes for the commits? I would like to participate in this discussion. :)
Activity
weslleyspereira commentedon Feb 5, 2021
I observed the same error here.
thijssteel commentedon Feb 5, 2021
Besides solving the failure of that specific test, i think it would be great to have bounds checks in the unit tests that run in the ci. Maybe a special testing target in cmake or something?
langou commentedon Feb 9, 2021
Hi @thijssteel, (1) yes, bound checks in the travis continuous integration would be terrific. (2) I am not sure how to enable this. Julien.
christoph-conrads commentedon Feb 12, 2021
The most convenient method is probably via environment variables, e.g.,
env FFLAGS='-fcheck=bounds' cmake -DCMAKE_BUILD_TYPE=Debug -- ~/lapack. In the.travis-ci.yml, you could add the following lines then:christoph-conrads commentedon Feb 12, 2021
Failing tests due to this problem:
langou commentedon Feb 12, 2021
Just spoke off line with @weslleyspereira, here what we would like to do
(1) we want to add a target in Travis that will track the problem with "out of bounds" as suggested by @christoph-conrads
(2) but we want to add such a test only after fixing the actual "out of bounds" problems we already have in the code. I understand that @scr2016 is looking into the TSQR "out of bounds" problem. @weslleyspereira and I suggest that we wait on @scr2016 before editing our Travis' target.
martin-frbg commentedon Feb 15, 2021
There is a bunch of trivial bounds errors in the tests that are already reported at the
-Wextralevel, typically inside aDO .. J=1,Nan array elementJ-1is set or otherwise referenced...e.g. in cbdt03.fthijssteel commentedon Feb 15, 2021
I don't want to offend anyone, but wouldn't it be better to just revert those couple of commits and make a PR? Its clear that they would have benefitted from a few reviews.
martin-frbg commentedon Feb 15, 2021
Ah, those were the things that landed straight on master... guess I should open a new issue for "my" finds, it just looked convenient to put them here as "related".
thijssteel commentedon Feb 15, 2021
ah, those tests you just reported are not related to the Householder reconstruction routines.
martin-frbg commentedon Feb 15, 2021
Indeed not, must be fairly old - I just chanced onto them with a
gfortran10 -Wextrabuildweslleyspereira commentedon Feb 16, 2021
Hi @thijssteel. Could you please provide the hash codes for the commits? I would like to participate in this discussion. :)
thijssteel commentedon Feb 18, 2021
@weslleyspereira
874b678 and 0db2865
They were committed to master without a pull request, see also #371
but i made that comment thinking the extra error martin reported was also related to that code, if its just the one error its probably fine.
weslleyspereira commentedon Feb 22, 2021
Thanks @thijssteel! I saw the commits
fixes in cungtsqr_row.f, dorgtsqr_row.f, sorgtsqr_row.f, zungtsqr_row…
Merge pull request #510 from scr2016/master
fixes in cungtsqr_row.f, dorgtsqr_row.f, sorgtsqr_row.f, zungtsqr_row…
Merge pull request Reference-LAPACK#510 from scr2016/master