bugGNU Octave - Bugs: bug #54230, Test script in build process fails...

 
 

bug #54230: Test script in build process fails with OpenBLAS-0.3.1

Submitter:  Julian <marrowsuck>
Submitted:  Mon 02 Jul 2018 02:07:02 PM UTC
   
 
Category:  Configuration and Build System Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Build Failure
Status:  Invalid / Not an Octave Bug Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * other Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Fri 06 Jul 2018 09:58:00 PM UTC, comment #5: 

Marking as an upstream bug (they have already committed a fix which mentions the segfaults with Octave) and closing report.

Rik <rik5>
Group administrator
Mon 02 Jul 2018 08:11:33 PM UTC, comment #4: 

You are right -- this seems to be an openblas issue.

I needed several attempts to finally build octave with OMP_NUM_THREADS=1.

This can be closed.

Julian <marrowsuck>
Mon 02 Jul 2018 04:06:45 PM UTC, comment #3: 

Looks like an issue in openblas:

https://github.com/xianyi/OpenBLAS/issues/1641


John Donoghue <lostbard>
Group Member
Mon 02 Jul 2018 03:22:17 PM UTC, comment #2: 

FWIW -- I have octave 4.4.0x built against openblas 0.3.1 and the test passes with either serial or threaded or omp version of this library (linux Fedora 28).

Dmitri.
--

Dmitri A. Sergatskov <dasergatskov>
Mon 02 Jul 2018 02:41:41 PM UTC, comment #1: 

I don't see how this is a bug in Octave.  As far as I know, Octave doesn't do anything to set the number of threads that OpenBLAS will use.  If you need to limit the number, then from reading the OpenBLAS code, it looks like you can set OPENBLAS_NUM_THREADS or OMP_NUM_THREADS in your environment before starting Octave.

John W. Eaton <jwe>
Group administrator
Mon 02 Jul 2018 02:07:02 PM UTC, original submission:  

Test script fails with:

  libinterp/corefcn/graphics.cc-tst ........................... PASS     47/47
                                             (run-time condition) SKIP    3
  libinterp/corefcn/gsvd.cc-tst ...............................OpenBLAS : Program will terminate because you tried to start too many threads.
OpenBLAS : Program will terminate because you tried to start too many threads.
fatal: caught signal OpenBLAS : Program will terminate because you tried to start too many threads.
Segmentation fault -- stopping myself...
/bin/sh: line 1:  5455 Segmentation fault      /bin/sh ../run-octave --norc --silent --no-history -p /tmp/SBo/octave-VCS/test/mex /tmp/SBo/octave-VCS/test/fntests.m /tmp/SBo/octave-VCS/test
make[3]: *** [Makefile:31870: check-local] Error 139
make[3]: Leaving directory '/tmp/SBo/octave-VCS'
make[2]: *** [Makefile:28026: check-am] Error 2
make[2]: Leaving directory '/tmp/SBo/octave-VCS'
make[1]: *** [Makefile:27734: check-recursive] Error 1
make[1]: Leaving directory '/tmp/SBo/octave-VCS'
make: *** [Makefile:28028: check] Error 2


Here are the last lines of fntests.log:

>>>>> processing /tmp/SBo/octave-VCS/libinterp/corefcn/gsvd.cc-tst
***** test <48807>
 A = reshape (1:15,5,3);
 B = magic (3);
 [U,V,X,C,S] = gsvd (A,B);
 assert (U*C*X', A, 50*eps);
 assert (V*S*X', B, 50*eps);
 S0 = gsvd (A, B);
 S1 = svd (A / B);
 assert (S0, S1, 10*eps);
!!!!! known bug: https://octave.org/testfailure/?48807
operator *: nonconformant arguments (op1 is 5x5, op2 is 3x3)


The build completes with OpenBLAS-0.3.0.

See here for the concerning OpenBLAS code:
https://github.com/xianyi/OpenBLAS/blob/3d3c19717cd2f96aa2221a7b8b0d330691f17ca1/driver/others/memory.c

Julian <marrowsuck>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by lostbard (Posted a comment)
  • -email is unavailable- added by dasergatskov (Posted a comment)
  • -email is unavailable- added by jwe (Posted a comment)
  • -email is unavailable- added by marrowsuck (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2018-07-06 rik5 StatusNone Invalid / Not an Octave Bug
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-caa5.
    Corresponding source code