[Bug 267750] omp_set_num_threads fails to set number of threads

From: <bugzilla-noreply_at_freebsd.org>
Date: Mon, 14 Nov 2022 06:55:45 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=267750

Daniel Tameling <tamelingdaniel@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |tamelingdaniel@gmail.com

--- Comment #1 from Daniel Tameling <tamelingdaniel@gmail.com> ---
This is in accordance with the specification. It says: "The omp_get_num_threads
routine returns the number of threads in the team that is executing the
parallel region to which the routine region binds. If called from the
sequential part of a program, this routine returns 1."

See also
https://stackoverflow.com/questions/8969748/set-number-of-threads-using-omp-set-num-threads-to-2-but-omp-get-num-threads
for a similar discussion.

-- 
You are receiving this mail because:
You are the assignee for the bug.