Date: Mon, 14 Nov 2022 06:55:45 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 267750] omp_set_num_threads fails to set number of threads Message-ID: <bug-267750-227-SJPXJfe2Ae@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-267750-227@https.bugs.freebsd.org/bugzilla/> References: <bug-267750-227@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D267750 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_thr= eads 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. --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-267750-227-SJPXJfe2Ae>