Comments (5)
Ok, after fixing the test implementation (#964), the ZDNRM2
test breaks again with Debian specific build flags. I think I should try to contribute a CI test with Debian build flags. Those stack protection flags can help you guys catch more bugs.
from lapack.
There is a typo in the test that on most systems apparently yields a zero, but not on the two systems above.
@cdluminate I sent you an email.
from lapack.
BTW, the following is the default build flags for Debian (distribution-wide):
CFLAGS=-g -O2 -ffile-prefix-map=/home/lumin=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection
CPPFLAGS=-Wdate-time -D_FORTIFY_SOURCE=2
FFLAGS=-g -O2 -ffile-prefix-map=/home/lumin=. -fstack-protector-strong -fstack-clash-protection -fcf-protection
LDFLAGS=-Wl,-z,relro
I've not yet verified which argument triggered the bug. But I cannot reproduce the issue on i386 with the default flags in make.inc
. The bug only appears when built using debian's flags and tools. There is a resemblance to #961 which is only triggered by coverage build.
from lapack.
With the default flags in make.inc
. The test passed. But with stack protections, you can reproduce the issue with (1) the following config, (2) Patch #964, and (3) the command make blas_testing
on an amd64 machine.
21c21
< FFLAGS = -O2 -frecursive
---
> FFLAGS = -g -O2 -fstack-protector-strong -fstack-clash-protection -fcf-protection
27c27
< LDFLAGS =
---
> LDFLAGS = -Wl,-z,relro
The error looks like
Test of subprogram number 6 DZNRM2
FAIL
DZNRM2: N= 1, INCX= -2, IV= 9, IW= 1, test= NaN
DZNRM2: N= 1, INCX= -2, IV= 9, IW= 2, test= NaN
DZNRM2: N= 1, INCX= -2, IV= 9, IW= 3, test= NaN
DZNRM2: N= 1, INCX= -2, IV= 9, IW= 4, test= NaN
DZNRM2: N= 1, INCX= -2, IV= 9, IW= 5, test= NaN
DZNRM2: N= 1, INCX= -2, IV= 9, IW= 6, test= NaN
DZNRM2: N= 1, INCX= -2, IV= 9, IW= 7, test= NaN
DZNRM2: N= 1, INCX= -2, IV= 9, IW= 8, test= NaN
DZNRM2: N= 1, INCX= -2, IV= 9, IW= 9, test= NaN
DZNRM2: N= 1, INCX= -2, IV= 9, IW=10, test= NaN
FAIL
DZNRM2: N= 1, INCX= 1, IV= 9, IW= 1, test= NaN
DZNRM2: N= 1, INCX= 1, IV= 9, IW= 2, test= NaN
DZNRM2: N= 1, INCX= 1, IV= 9, IW= 3, test= NaN
DZNRM2: N= 1, INCX= 1, IV= 9, IW= 4, test= NaN
DZNRM2: N= 1, INCX= 1, IV= 9, IW= 5, test= NaN
DZNRM2: N= 1, INCX= 1, IV= 9, IW= 6, test= NaN
DZNRM2: N= 1, INCX= 1, IV= 9, IW= 7, test= NaN
DZNRM2: N= 1, INCX= 1, IV= 9, IW= 8, test= NaN
DZNRM2: N= 1, INCX= 1, IV= 9, IW= 9, test= NaN
DZNRM2: N= 1, INCX= 1, IV= 9, IW=10, test= NaN
FAIL
DZNRM2: N= 2, INCX= -2, IV= 1, IW= 9, test= NaN
DZNRM2: N= 2, INCX= -2, IV= 2, IW= 9, test= NaN
DZNRM2: N= 2, INCX= -2, IV= 3, IW= 9, test= NaN
DZNRM2: N= 2, INCX= -2, IV= 4, IW= 9, test= NaN
DZNRM2: N= 2, INCX= -2, IV= 5, IW= 9, test= NaN
DZNRM2: N= 2, INCX= -2, IV= 6, IW= 9, test= NaN
DZNRM2: N= 2, INCX= -2, IV= 7, IW= 9, test= NaN
DZNRM2: N= 2, INCX= -2, IV= 8, IW= 9, test= NaN
DZNRM2: N= 2, INCX= -2, IV= 9, IW= 1, test= NaN
DZNRM2: N= 2, INCX= -2, IV= 9, IW= 2, test= NaN
DZNRM2: N= 2, INCX= -2, IV= 9, IW= 3, test= NaN
DZNRM2: N= 2, INCX= -2, IV= 9, IW= 4, test= NaN
DZNRM2: N= 2, INCX= -2, IV= 9, IW= 5, test= NaN
DZNRM2: N= 2, INCX= -2, IV= 9, IW= 6, test= NaN
DZNRM2: N= 2, INCX= -2, IV= 9, IW= 7, test= NaN
DZNRM2: N= 2, INCX= -2, IV= 9, IW= 8, test= NaN
DZNRM2: N= 2, INCX= -2, IV= 9, IW= 9, test= NaN
FAIL
DZNRM2: N= 2, INCX= 1, IV= 1, IW= 9, test= NaN
DZNRM2: N= 2, INCX= 1, IV= 2, IW= 9, test= NaN
DZNRM2: N= 2, INCX= 1, IV= 3, IW= 9, test= NaN
[...truncated...]
Update: cblas1.f
fails just like zcblas1.f
.
from lapack.
I will have a look at this on the weekend.
from lapack.
Related Issues (20)
- cmake: enable Fortran HOT 1
- [Request for comments] Properly solving the *TRTRS singularity detection problem HOT 2
- Inkscape and OpenShot throw error "undefined symbol: ssyrk_64_" from libcblas HOT 4
- Installing Lapack in Red Hat linux
- Did 3.12.0 get re-tagged? HOT 6
- Failing tests for truncated QR routine in coverage build HOT 10
- Make all release tags annotated tags HOT 2
- Caller graph in html documentation is missing for some BLAS routines
- Issues, related to new feature DMD HOT 1
- Add zrot to LAPACKE HOT 1
- DBBCSD may compute insufficiently accurate singular vectors HOT 2
- Packages and build systems confusion: Separate or combined libraries?
- fails of tests for QR and LQ decompositions HOT 1
- LAPACK requires CMake 3.11 or newer HOT 1
- Documentation Error in {d/s}sytrf.f
- C/ZLARFGP must re-scale when ALPHA is not real HOT 1
- How to stand-alone build man pages? HOT 2
- LAPACKE in Doxygen documentation
- How to set linker type(with or without underscore as suffix) for BLAS complied by MinGW64? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lapack.