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

Re: [HTCondor-users] OMP_NUM_THREADS



From: Greg Thain <gthain@xxxxxxxxxxx>
Date: 07/18/2016 11:01 AM
 
> FYI, newer versions of HTCondor explicitly set the the environment
> variable OMP_NUM_THREADS
> in the job to the value of Request_Cpus.  This should constrain the number
> of threads that matlab and other openmp based program spawn.

Hey Greg, thanks for the info! I see the variable set in my 8.4.7
release here, but I think MATLAB must have been doing something different
that didn't refer to it. What I was seeing was not directly MPI-related,
but rather pthread-related, it seemed.

I'll see if I can enlist one of the team over there take a closer look
at it to confirm. At the very least the variable would provide a good
way to make a maxNumCompThreads() call.

        -Michael Pelletier.
_