This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libgomp/64719] omp_get_num_procs should not account for cpu affinity
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 29 Jan 2015 09:32:49 +0000
- Subject: [Bug libgomp/64719] omp_get_num_procs should not account for cpu affinity
- Auto-submitted: auto-generated
- References: <bug-64719-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64719
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |INVALID
--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
This is very much intentional. If you confine the process to certain subset of
cores/HW threads, then normally all threads that it creates are confined that
way. So as far as OpenMP is concerned, the other cores/HW threads are not
online for this process.