[Openmp-dev] omp_get_thread_limit default

Joachim Protze via Openmp-dev openmp-dev at lists.llvm.org
Wed Feb 21 23:43:36 PST 2018


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
> 



More information about the Openmp-dev mailing list