octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #48534] nproc ("overridable") ignores thread l


From: Oliver Heimlich
Subject: [Octave-bug-tracker] [bug #48534] nproc ("overridable") ignores thread limit
Date: Sat, 16 Jul 2016 21:33:24 +0000 (UTC)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Firefox/45.0

URL:
  <http://savannah.gnu.org/bugs/?48534>

                 Summary: nproc ("overridable") ignores thread limit
                 Project: GNU Octave
            Submitted by: oheim
            Submitted on: Sat 16 Jul 2016 11:33:22 PM CEST
                Category: Libraries
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Incorrect Result
                  Status: None
             Assigned to: None
         Originator Name: Oliver Heimlich
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: dev
        Operating System: Any

    _______________________________________________________

Details:

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.




    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?48534>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]