bugGNU Octave - Bugs: bug #48535, nproc ("overridable")...

 
 

bug #48535: nproc ("overridable") ignores nesting level

Submitter:  Oliver Heimlich <oheim>
Submitted:  Sat 16 Jul 2016 09:37:03 PM UTC
   
 
Category:  Libraries Severity:  3 - Normal
Priority:  3 - Low Item Group:  Incorrect Result
Status:  Fixed Assigned to:  None
Originator Name:  Oliver Heimlich Open/Closed:  * Closed
Release:  * dev Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Wed 02 May 2018 06:42:47 PM UTC, comment #3: 

This seems to be fixed now in Octave 4.4.

Mike Miller <mtmiller>
Group Member
Tue 22 Nov 2016 05:39:16 PM UTC, comment #2: 

@Oliver: Have you reported the problem to gnulib?  We will inherit their fix.

Rik <rik5>
Group administrator
Mon 18 Jul 2016 03:33:58 PM UTC, comment #1: 

If the bug is in gnulib, could you please report the problem to bug-gnulib@gnu.org?  Then once it is fixed there, we will get the fix when we update to a newer version of gnulib.

John W. Eaton <jwe>
Group administrator
Sat 16 Jul 2016 09:37:03 PM UTC, original submission:  

nproc ("overridable") parses the environment variable OMP_NUM_THREADS for an integer. However, according to OpenMP documentation it may be a list of integers. In that case, nproc ("overridable") ignores the value of OMP_NUM_THREADS. See https://gcc.gnu.org/onlinedocs/libgomp/OMP_005fNUM_005fTHREADS.html

What I get:

$ OMP_NUM_THREADS=2,2 octave --eval 'nproc ("overridable")'
ans =  4


What I expected:

$ OMP_NUM_THREADS=2,2 octave --eval 'nproc ("overridable")'
ans =  2


The bug is located in gnulib.

Oliver Heimlich <oheim>

 

(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 mtmiller (Posted a comment)
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by jwe (Posted a comment)
  • -email is unavailable- added by oheim (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 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2018-05-02 mtmiller StatusPostponed Fixed
        Open/ClosedOpen Closed
    2016-11-22 rik5 Priority5 - Normal 3 - Low
        StatusNone Postponed

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code