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

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

[Octave-bug-tracker] [bug #51643] setting OMP_NUM_THREADS at runtime doe


From: Carnë Draug
Subject: [Octave-bug-tracker] [bug #51643] setting OMP_NUM_THREADS at runtime does not chaneg number of openmp threads
Date: Wed, 2 Aug 2017 14:55:09 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Firefox/45.0

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

                 Summary: setting OMP_NUM_THREADS at runtime does not chaneg
number of openmp threads
                 Project: GNU Octave
            Submitted by: carandraug
            Submitted on: Wed 02 Aug 2017 06:55:07 PM UTC
                Category: None
                Severity: 1 - Wish
                Priority: 5 - Normal
              Item Group: None
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: dev
        Operating System: Any

    _______________________________________________________

Details:

The multiple threads of an openmp program are typically initialised at the
start of that program based on the OMP_NUM_THREADS variable. Changing that
variable at runtime does not change the number of threads, there's a C++
function 'omp_set_num_threads' for that.

Would be nice to configure this from Octave. Since nproc already documents
that the environment variable OMP_NUM_THREADS is used, I guess that maybe
setenv could check if OMP_NUM_THREADS is being changed and call the
appropriate omp function.




    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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