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

 
 

bug #48534: nproc ("overridable") ignores thread limit

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

Add a New Comment Rich Markup
   

Mon 28 Nov 2016 02:36:19 PM UTC, comment #5: 

Ok, I have send an e-mail together with bug #48535.

Oliver Heimlich <oheim>
Mon 28 Nov 2016 02:18:55 PM UTC, comment #4: 

You don't have to subscribe to post to the gnulib bug list.  If you are not a subscriber, your message (at least your first) will be held for approval, but it should be approved fairly quickly.

Info about the list is here:

https://lists.gnu.org/mailman/listinfo/bug-gnulib

John W. Eaton <jwe>
Group administrator
Mon 28 Nov 2016 01:30:54 PM UTC, comment #3: 

No, I haven't.  As far as I understand, you have to subscribe to a mailing list in order to submit bug reports.

Oliver Heimlich <oheim>
Tue 22 Nov 2016 05:37:26 PM UTC, comment #2: 

Marking as postponed.  This bug needs to be fixed in gnulib and then we will inherit the fix.

@Oliver: Have you reported this to gnulib?

Rik <rik5>
Group administrator
Mon 18 Jul 2016 03:34:03 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:33:22 PM UTC, original submission:  

nproc ("overridable") returns the value of OMP_NUM_THREADS. However, if a thread limit is defined, it should return the minimum of OMP_NUM_THREADS and OMP_THREAD_LIMIT.

What I get:

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


What I expected:

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


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 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 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-11-22 rik5 Priority5 - Normal 3 - Low
        StatusNone Postponed

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code