[Bug libgomp/102320] Set cpu affinity error

2021-09-14 Thread zhuguanghong at uniontech dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102320 --- Comment #7 from zhuguanghong --- I get it, thank you for your answer

[Bug libgomp/102320] Set cpu affinity error

2021-09-14 Thread zhuguanghong at uniontech dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102320 --- Comment #5 from zhuguanghong --- But what I want is that 0-7cpu can run this thread

[Bug libgomp/102320] Set cpu affinity error

2021-09-14 Thread zhuguanghong at uniontech dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102320 --- Comment #4 from zhuguanghong --- This leads to when I set the environment variable "GOMP_CPU_AFFINITY=0-7" and call the initialize_env function, the thread will be automatically bound to one cpu and cannot be scheduled to other cpu.

[Bug libgomp/102320] Set cpu affinity error

2021-09-14 Thread zhuguanghong at uniontech dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102320 --- Comment #3 from zhuguanghong --- hi ,thanks for your reply initialize_env (void) 1 { 0 1 if (parse_affinity (ignore)) 2 { 3 if (gomp_global_

[Bug libgomp/102320] Set cpu affinity error

2021-09-14 Thread zhuguanghong at uniontech dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102320 --- Comment #1 from zhuguanghong --- fix? like this ? while(gomp_places_list_len-- ){ *(gomp_places_list[0]) | = *(gomp_places_list[gomp_places_list_len])

[Bug libgomp/102320] New: Set cpu affinity error

2021-09-14 Thread zhuguanghong at uniontech dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102320 Bug ID: 102320 Summary: Set cpu affinity error Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: libgomp Assi