FS#78738 - [julia] LinearAlgebra/blas test fails

Attached to Project: Arch Linux
Opened by Cory Sanin (corysanin) - Thursday, 08 June 2023, 16:11 GMT
Last edited by Toolybird (Toolybird) - Friday, 09 June 2023, 00:27 GMT
Task Type Bug Report
Category Packages: Testing
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
Test Summary: | Pass Fail Broken Total Time
Overall | 40603559 1 352742 40956302 14m50.7s
LinearAlgebra/blas | 1629 1 1630 55.1s

The global RNG seed was 0x1cc3055ede74c207e65dd64e0b8782a3.

Error in testset LinearAlgebra/blas:
Test Failed at /home/user/julia/src/julia-1.9.1/usr/share/julia/stdlib/v1.9/LinearAlgebra/test/blas.jl:699
Expression: BLAS.axpy!(α, a, copy(b)) ≈ α * a + b
Evaluated: ComplexF64[1.9330187934128453 - 8.970730564994865im, -0.6963896877405945 + 0.8611170231579576im, -0.6963896877405945 + 0.8611170231579576im, -0.6963896877405945 + 0.8611170231579576im, -0.6963896877405945 + 0.8611170231579576im, -0.6963896877405945 + 0.8611170231579576im, -0.6963896877405945 + 0.8611170231579576im, -0.6963896877405945 + 0.8611170231579576im, -0.6963896877405945 + 0.8611170231579576im, -0.6963896877405945 + 0.8611170231579576im] ≈ ComplexF64[-0.4334488396252506 - 0.12206773565732487im, -0.4334488396252506 - 0.12206773565732487im, -0.4334488396252506 - 0.12206773565732487im, -0.4334488396252506 - 0.12206773565732487im, -0.4334488396252506 - 0.12206773565732487im, -0.4334488396252506 - 0.12206773565732487im, -0.4334488396252506 - 0.12206773565732487im, -0.4334488396252506 - 0.12206773565732487im, -0.4334488396252506 - 0.12206773565732487im, -0.4334488396252506 - 0.12206773565732487im]

ERROR: LoadError: Test run finished with errors
in expression starting at /home/user/julia/src/julia-1.9.1/test/runtests.jl:93
==> ERROR: A failure occurred in check().
Aborting...

Additional info:
* package version(s) julia 2:1.9.1-1
* config and/or log files etc.
* link to upstream bug report, if any

Steps to reproduce:
makepkg -sr --skippgpcheck
This task depends upon

Closed by  Toolybird (Toolybird)
Friday, 09 June 2023, 00:27 GMT
Reason for closing:  Works for me
Additional comments about closing:  See comments from PM
Comment by Antonio Rojas (arojas) - Thursday, 08 June 2023, 16:36 GMT
This works fine for me both locally and on the build server. Make sure to always build packages in a clean chroot so other installed packages don't interfere with the build.
Comment by Cory Sanin (corysanin) - Thursday, 08 June 2023, 18:08 GMT
makechrootpkg -c -r $CHROOT -- --skippgpcheck

...

LinearAlgebra/blas (10) | failed at 2023-06-08T13:03:48.643
Test Failed at /build/julia/src/julia-1.9.1/usr/share/julia/stdlib/v1.9/LinearAlgebra/test/blas.jl:699
Expression: BLAS.axpy!(α, a, copy(b)) ≈ α * a + b
Evaluated: ComplexF64[1.9330187934128453 - 8.970730564994865im, -0.6963896877405945 + 0.8611170231579576im, -0.6963896877405945 + 0.8611170231579576im, -0.6963896877405945 + 0.8611170231579576im, -0.6963896877405945 + 0.8611170231579576im, -0.6963896877405945 + 0.8611170231579576im, -0.6963896877405945 + 0.8611170231579576im, -0.6963896877405945 + 0.8611170231579576im, -0.6963896877405945 + 0.8611170231579576im, -0.6963896877405945 + 0.8611170231579576im] ≈ ComplexF64[-0.4334488396252506 - 0.12206773565732487im, -0.4334488396252506 - 0.12206773565732487im, -0.4334488396252506 - 0.12206773565732487im, -0.4334488396252506 - 0.12206773565732487im, -0.4334488396252506 - 0.12206773565732487im, -0.4334488396252506 - 0.12206773565732487im, -0.4334488396252506 - 0.12206773565732487im, -0.4334488396252506 - 0.12206773565732487im, -0.4334488396252506 - 0.12206773565732487im, -0.4334488396252506 - 0.12206773565732487im]

🤔
Comment by Antonio Rojas (arojas) - Thursday, 08 June 2023, 18:35 GMT
Post the output of 'julia /usr/share/julia/stdlib/v1.9/LinearAlgebra/test/blas.jl' with:

1) julia 1.9.0-3 from [extra], with lapack64 and cblas64 installed and blas64-openblas uninstalled.
2) julia 1.9.0-4 (you can get it from https://archive.archlinux.org/packages/j/julia/), with blas64-openblas installed.
3) julia 1.9.1-1, with blas64-openblas installed.
Comment by Cory Sanin (corysanin) - Thursday, 08 June 2023, 19:15 GMT
Huh, I can't get any of them to pass. I don't think it's relevant but I've been running everything in either Docker or a VM. I don't see why that should impact anything but I figured I'd mention it. Scenario 1 I ran in both, same result. I have all three docker containers running still so I can verify anything else if need be.

1)
[user@fd7eddcd450b ~]$ julia /usr/share/julia/stdlib/v1.9/LinearAlgebra/test/blas.jl
Test Summary: | Pass Total Time
vec_pointer_stride | 7 7 0.2s
Test Summary: | Pass Total Time
elty = Float32 | 325 325 3.9s
Test Summary: | Pass Total Time
elty = Float64 | 325 325 3.6s
Test Summary: | Pass Total Time
elty = ComplexF32 | 361 361 4.0s
Test Summary: | Pass Total Time
elty = ComplexF64 | 361 361 3.8s
Test Summary: | Pass Total Time
syr for eltype Float32 | 4 4 0.0s
Test Summary: | Pass Total Time
syr for eltype Float64 | 4 4 0.1s
Test Summary: | Pass Total Time
syr for eltype ComplexF32 | 4 4 0.1s
Test Summary: | Pass Total Time
syr for eltype ComplexF64 | 4 4 0.0s
Test Summary: | Pass Total Time
her for eltype ComplexF32 | 4 4 0.0s
Test Summary: | Pass Total Time
her for eltype ComplexF64 | 4 4 0.0s
Test Summary: | Pass Total Time
strided interface adjtrans | 26 26 0.2s
Test Summary: | Pass Total Time
strided interface blas | 150 150 1.2s
Test Summary: | Pass Total Time
get_set_num_threads | 4 4 0.0s
Test Summary: | Pass Total Time
test for 0-strides | 11 11 0.2s
Test Summary: | Pass Total Time
test for 0-strides | 11 11 0.2s
Test Summary: | Pass Total Time
test for 0-strides | 12 12 0.2s
axp(b)y!: Test Failed at /usr/share/julia/stdlib/v1.9/LinearAlgebra/test/blas.jl:699
Expression: BLAS.axpy!(α, a, copy(b)) ≈ α * a + b
Evaluated: ComplexF64[1.9330187934128453 - 8.970730564994865im, -0.6963896877405945 + 0.8611170231579576im, -0.6963896877405945 + 0.8611170231579576im, -0.6963896877405945 + 0.8611170231579576im, -0.6963896877405945 + 0.8611170231579576im, -0.6963896877405945 + 0.8611170231579576im, -0.6963896877405945 + 0.8611170231579576im, -0.6963896877405945 + 0.8611170231579576im, -0.6963896877405945 + 0.8611170231579576im, -0.6963896877405945 + 0.8611170231579576im] ≈ ComplexF64[-0.4334488396252506 - 0.12206773565732487im, -0.4334488396252506 - 0.12206773565732487im, -0.4334488396252506 - 0.12206773565732487im, -0.4334488396252506 - 0.12206773565732487im, -0.4334488396252506 - 0.12206773565732487im, -0.4334488396252506 - 0.12206773565732487im, -0.4334488396252506 - 0.12206773565732487im, -0.4334488396252506 - 0.12206773565732487im, -0.4334488396252506 - 0.12206773565732487im, -0.4334488396252506 - 0.12206773565732487im]

Stacktrace:
[1] macro expansion
@ /usr/share/julia/stdlib/v1.9/Test/src/Test.jl:478 [inlined]
[2] macro expansion
@ /usr/share/julia/stdlib/v1.9/LinearAlgebra/test/blas.jl:699 [inlined]
[3] macro expansion
@ /usr/share/julia/stdlib/v1.9/Test/src/Test.jl:1498 [inlined]
[4] macro expansion
@ /usr/share/julia/stdlib/v1.9/LinearAlgebra/test/blas.jl:699 [inlined]
[5] top-level scope
@ /usr/share/julia/stdlib/v1.9/Test/src/Test.jl:1586 [inlined]
[6] top-level scope
@ /usr/share/julia/stdlib/v1.9/LinearAlgebra/test/blas.jl:0
Test Summary: | Pass Fail Total Time
test for 0-strides | 11 1 12 0.4s
dot/dotc/dotu | 2 2 0.1s
axp(b)y! | 3 1 4 0.3s
nrm2/asum | 2 2 0.0s
gemv! | 2 2 0.0s
ERROR: LoadError: Some tests did not pass: 11 passed, 1 failed, 0 errored, 0 broken.
in expression starting at /usr/share/julia/stdlib/v1.9/LinearAlgebra/test/blas.jl:3

2)
[user@a9e89f56f2de ~]$ julia /usr/share/julia/stdlib/v1.9/LinearAlgebra/test/blas.jl
Test Summary: | Pass Total Time
vec_pointer_stride | 7 7 0.2s
Test Summary: | Pass Total Time
elty = Float32 | 325 325 4.0s
Test Summary: | Pass Total Time
elty = Float64 | 325 325 3.6s
Test Summary: | Pass Total Time
elty = ComplexF32 | 361 361 4.1s
Test Summary: | Pass Total Time
elty = ComplexF64 | 361 361 3.8s
Test Summary: | Pass Total Time
syr for eltype Float32 | 4 4 0.0s
Test Summary: | Pass Total Time
syr for eltype Float64 | 4 4 0.1s
Test Summary: | Pass Total Time
syr for eltype ComplexF32 | 4 4 0.1s
Test Summary: | Pass Total Time
syr for eltype ComplexF64 | 4 4 0.0s
Test Summary: | Pass Total Time
her for eltype ComplexF32 | 4 4 0.0s
Test Summary: | Pass Total Time
her for eltype ComplexF64 | 4 4 0.0s
Test Summary: | Pass Total Time
strided interface adjtrans | 26 26 0.2s
Test Summary: | Pass Total Time
strided interface blas | 150 150 1.2s
Test Summary: | Pass Total Time
get_set_num_threads | 4 4 0.0s
Test Summary: | Pass Total Time
test for 0-strides | 11 11 0.2s
Test Summary: | Pass Total Time
test for 0-strides | 11 11 0.2s
Test Summary: | Pass Total Time
test for 0-strides | 12 12 0.2s
axp(b)y!: Test Failed at /usr/share/julia/stdlib/v1.9/LinearAlgebra/test/blas.jl:699
Expression: BLAS.axpy!(α, a, copy(b)) ≈ α * a + b
Evaluated: ComplexF64[1.9330187934128453 - 8.970730564994865im, -0.6963896877405945 + 0.8611170231579576im, -0.6963896877405945 + 0.8611170231579576im, -0.6963896877405945 + 0.8611170231579576im, -0.6963896877405945 + 0.8611170231579576im, -0.6963896877405945 + 0.8611170231579576im, -0.6963896877405945 + 0.8611170231579576im, -0.6963896877405945 + 0.8611170231579576im, -0.6963896877405945 + 0.8611170231579576im, -0.6963896877405945 + 0.8611170231579576im] ≈ ComplexF64[-0.4334488396252506 - 0.12206773565732487im, -0.4334488396252506 - 0.12206773565732487im, -0.4334488396252506 - 0.12206773565732487im, -0.4334488396252506 - 0.12206773565732487im, -0.4334488396252506 - 0.12206773565732487im, -0.4334488396252506 - 0.12206773565732487im, -0.4334488396252506 - 0.12206773565732487im, -0.4334488396252506 - 0.12206773565732487im, -0.4334488396252506 - 0.12206773565732487im, -0.4334488396252506 - 0.12206773565732487im]

Stacktrace:
[1] macro expansion
@ /usr/share/julia/stdlib/v1.9/Test/src/Test.jl:478 [inlined]
[2] macro expansion
@ /usr/share/julia/stdlib/v1.9/LinearAlgebra/test/blas.jl:699 [inlined]
[3] macro expansion
@ /usr/share/julia/stdlib/v1.9/Test/src/Test.jl:1498 [inlined]
[4] macro expansion
@ /usr/share/julia/stdlib/v1.9/LinearAlgebra/test/blas.jl:699 [inlined]
[5] top-level scope
@ /usr/share/julia/stdlib/v1.9/Test/src/Test.jl:1586 [inlined]
[6] top-level scope
@ /usr/share/julia/stdlib/v1.9/LinearAlgebra/test/blas.jl:0
Test Summary: | Pass Fail Total Time
test for 0-strides | 11 1 12 0.4s
dot/dotc/dotu | 2 2 0.1s
axp(b)y! | 3 1 4 0.3s
nrm2/asum | 2 2 0.0s
gemv! | 2 2 0.0s
ERROR: LoadError: Some tests did not pass: 11 passed, 1 failed, 0 errored, 0 broken.
in expression starting at /usr/share/julia/stdlib/v1.9/LinearAlgebra/test/blas.jl:3

3)
[user@f7e97be2092d ~]$ julia /usr/share/julia/stdlib/v1.9/LinearAlgebra/test/blas.jl
Test Summary: | Pass Total Time
vec_pointer_stride | 7 7 0.2s
Test Summary: | Pass Total Time
elty = Float32 | 325 325 4.0s
Test Summary: | Pass Total Time
elty = Float64 | 325 325 3.6s
Test Summary: | Pass Total Time
elty = ComplexF32 | 361 361 4.0s
Test Summary: | Pass Total Time
elty = ComplexF64 | 361 361 3.9s
Test Summary: | Pass Total Time
syr for eltype Float32 | 4 4 0.0s
Test Summary: | Pass Total Time
syr for eltype Float64 | 4 4 0.1s
Test Summary: | Pass Total Time
syr for eltype ComplexF32 | 4 4 0.0s
Test Summary: | Pass Total Time
syr for eltype ComplexF64 | 4 4 0.0s
Test Summary: | Pass Total Time
her for eltype ComplexF32 | 4 4 0.0s
Test Summary: | Pass Total Time
her for eltype ComplexF64 | 4 4 0.1s
Test Summary: | Pass Total Time
strided interface adjtrans | 26 26 0.2s
Test Summary: | Pass Total Time
strided interface blas | 150 150 1.2s
Test Summary: | Pass Total Time
get_set_num_threads | 4 4 0.0s
Test Summary: | Pass Total Time
test for 0-strides | 11 11 0.2s
Test Summary: | Pass Total Time
test for 0-strides | 11 11 0.2s
Test Summary: | Pass Total Time
test for 0-strides | 12 12 0.2s
axp(b)y!: Test Failed at /usr/share/julia/stdlib/v1.9/LinearAlgebra/test/blas.jl:699
Expression: BLAS.axpy!(α, a, copy(b)) ≈ α * a + b
Evaluated: ComplexF64[1.9330187934128453 - 8.970730564994865im, -0.6963896877405945 + 0.8611170231579576im, -0.6963896877405945 + 0.8611170231579576im, -0.6963896877405945 + 0.8611170231579576im, -0.6963896877405945 + 0.8611170231579576im, -0.6963896877405945 + 0.8611170231579576im, -0.6963896877405945 + 0.8611170231579576im, -0.6963896877405945 + 0.8611170231579576im, -0.6963896877405945 + 0.8611170231579576im, -0.6963896877405945 + 0.8611170231579576im] ≈ ComplexF64[-0.4334488396252506 - 0.12206773565732487im, -0.4334488396252506 - 0.12206773565732487im, -0.4334488396252506 - 0.12206773565732487im, -0.4334488396252506 - 0.12206773565732487im, -0.4334488396252506 - 0.12206773565732487im, -0.4334488396252506 - 0.12206773565732487im, -0.4334488396252506 - 0.12206773565732487im, -0.4334488396252506 - 0.12206773565732487im, -0.4334488396252506 - 0.12206773565732487im, -0.4334488396252506 - 0.12206773565732487im]

Stacktrace:
[1] macro expansion
@ /usr/share/julia/stdlib/v1.9/Test/src/Test.jl:478 [inlined]
[2] macro expansion
@ /usr/share/julia/stdlib/v1.9/LinearAlgebra/test/blas.jl:699 [inlined]
[3] macro expansion
@ /usr/share/julia/stdlib/v1.9/Test/src/Test.jl:1498 [inlined]
[4] macro expansion
@ /usr/share/julia/stdlib/v1.9/LinearAlgebra/test/blas.jl:699 [inlined]
[5] top-level scope
@ /usr/share/julia/stdlib/v1.9/Test/src/Test.jl:1586 [inlined]
[6] top-level scope
@ /usr/share/julia/stdlib/v1.9/LinearAlgebra/test/blas.jl:0
Test Summary: | Pass Fail Total Time
test for 0-strides | 11 1 12 0.4s
dot/dotc/dotu | 2 2 0.1s
axp(b)y! | 3 1 4 0.3s
nrm2/asum | 2 2 0.0s
gemv! | 2 2 0.0s
ERROR: LoadError: Some tests did not pass: 11 passed, 1 failed, 0 errored, 0 broken.
in expression starting at /usr/share/julia/stdlib/v1.9/LinearAlgebra/test/blas.jl:3
Comment by Antonio Rojas (arojas) - Thursday, 08 June 2023, 19:37 GMT
Also works fine in docker here. My guess is it's some bug with the openblas code specific to your CPU, as the output of BLAS.axpy!(α, a, copy(b)) is clearly wrong (all coordinates should be equal).

Not much we can do about this here.
Comment by Cory Sanin (corysanin) - Thursday, 08 June 2023, 19:47 GMT
Understood. For documentation purposes, I have a i7-13700KF.

Loading...