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

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

[Octave-bug-tracker] [bug #55643] Function "nproc" just reports the envi


From: Kai Torben Ohlhus
Subject: [Octave-bug-tracker] [bug #55643] Function "nproc" just reports the environment variable OMP_NUM_THREADS not the "current number of available processors".
Date: Tue, 5 Feb 2019 03:42:20 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.81 Safari/537.36

Update of bug #55643 (project octave):

                Severity:               2 - Minor => 3 - Normal             
                Priority:                 3 - Low => 5 - Normal             
                  Status:            Works For Me => Confirmed              
                 Release:                   4.2.2 => 5.0.91                 
                 Summary: Missing some of my processor cores (nproc) =>
Function "nproc" just reports the environment variable OMP_NUM_THREADS not the
"current number of available processors".

    _______________________________________________________

Follow-up Comment #8:

You are right, also my Octave 5.0.90 installation can be fooled by the
environment variable OMP_NUM_THREADS (see bug #51643).  And I can even turn my
laptop into a supercomputer :D


OMP_NUM_THREADS=3000000 octave --eval 'system ("nproc"); system ("nproc
--all"); nproc' 
3000000
4
ans =  4


    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?55643>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

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