Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 13 Nov 2022 19:53:33 +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@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D267750

            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>
>=20
> int main(int, char* []) {
>    omp_set_num_threads(4);
>    std::cout << "ncpu=3D" << omp_get_num_threads() << std::endl;
> }

prints:
> ncpu=3D1

instead of=20

> ncpu=3D4

--=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>