[Openmp-dev] omp_get_thread_limit default

Cownie, James H via Openmp-dev openmp-dev at lists.llvm.org
Thu Feb 22 02:28:44 PST 2018


At a more philosophical level, it's hard for the runtime to give any better answer, 
because the runtime itself has no inbuilt limits. The things which will limit the number
of threads that can be created are system-wide resources like memory, and there is no 
sane way for the runtime to predict which resource will run out, and, therefore, when
attempting to create another thread will fail.

-- Jim

Jim Cownie <james.h.cownie at intel.com>
SSG/DPD/TCAR (Technical Computing, Analyzers, and Runtimes)
Tel: +44 117 9071438


-----Original Message-----
From: Openmp-dev [mailto:openmp-dev-bounces at lists.llvm.org] On Behalf Of Joachim Protze via Openmp-dev
Sent: Thursday, February 22, 2018 7:44 AM
To: Simone Atzeni <satzeni at nvidia.com>; openmp-dev at lists.llvm.org
Subject: Re: [Openmp-dev] omp_get_thread_limit default

Hi Simone,

this function gives access to the ICV thread-limit-var. According to 2.1 
de initial value of this ICV is implementation defined. So, MAX_INT is a 
valid value.

Best
- Joachim

On 02/22/2018 02:18 AM, Simone Atzeni via Openmp-dev wrote:
> Hi,
> 
> calling “omp_get_thread_limit”, either inside or outside a parallel 
> region, it returns MAX_INT (2147483647) when OMP_THREAD_LIMIT is not set.
> 
> Is that the correct/default behavior for that function?
> 
> Thanks.
> 
> Simone
> 
> ------------------------------------------------------------------------
> This email message is for the sole use of the intended recipient(s) and 
> may contain confidential information.  Any unauthorized review, use, 
> disclosure or distribution is prohibited.  If you are not the intended 
> recipient, please contact the sender by reply email and destroy all 
> copies of the original message.
> ------------------------------------------------------------------------
> 
> 
> _______________________________________________
> Openmp-dev mailing list
> Openmp-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/openmp-dev
> 

_______________________________________________
Openmp-dev mailing list
Openmp-dev at lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/openmp-dev
---------------------------------------------------------------------
Intel Corporation (UK) Limited
Registered No. 1134945 (England)
Registered Office: Pipers Way, Swindon SN3 1RJ
VAT No: 860 2173 47

This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.


More information about the Openmp-dev mailing list