[Bug 267750] omp_set_num_threads fails to set number of threads

From: <bugzilla-noreply_at_freebsd.org>
Date: Sun, 13 Nov 2022 19:53:33 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=267750

            Bug ID: 267750
           Summary: omp_set_num_threads fails to set number of threads
           Product: Base System
           Version: 13.1-STABLE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: misc
          Assignee: bugs@FreeBSD.org
          Reporter: yuri@freebsd.org

This program:

> #include <omp.h>
> 
> int main(int, char* []) {
>    omp_set_num_threads(4);
>    std::cout << "ncpu=" << omp_get_num_threads() << std::endl;
> }

prints:
> ncpu=1

instead of 

> ncpu=4

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