[Bug libgomp/37586] OpenMP thinks that I have 1 processor on an 8 processor pc

2008-10-13 Thread rrpeter at sandia dot gov
--- Comment #10 from rrpeter at sandia dot gov 2008-10-13 18:24 --- Subject: Re: OpenMP thinks that I have 1 processor on an 8 processor pc jakub at gcc dot gnu dot org wrote: > --- Comment #9 from jakub at gcc dot gnu dot org 2008-10-13 17:52 --- > Yes, that certainly is the

[Bug libgomp/37586] OpenMP thinks that I have 1 processor on an 8 processor pc

2008-10-13 Thread jakub at gcc dot gnu dot org
--- Comment #9 from jakub at gcc dot gnu dot org 2008-10-13 17:52 --- Yes, that certainly is the source of your problems. You could call sched_setaffinity or pthread_sched_setaffinity in your program before entering an OpenMP region, guess you should also find out why does that library

[Bug libgomp/37586] OpenMP thinks that I have 1 processor on an 8 processor pc

2008-10-13 Thread rrpeter at sandia dot gov
--- Comment #8 from rrpeter at sandia dot gov 2008-10-13 15:17 --- Subject: Re: OpenMP thinks that I have 1 processor on an 8 processor pc jakub at gcc dot gnu dot org wrote: > --- Comment #7 from jakub at gcc dot gnu dot org 2008-10-13 09:43 --- > sched_getaffinity(3502, 12

[Bug libgomp/37586] OpenMP thinks that I have 1 processor on an 8 processor pc

2008-10-13 Thread jakub at gcc dot gnu dot org
--- Comment #7 from jakub at gcc dot gnu dot org 2008-10-13 09:43 --- sched_getaffinity(3502, 128, { ff, 0, 0, 0 }) = 32 sched_getaffinity(3502, 128, { 1, 0, 0, 0 }) = 32 ... sched_getaffinity(3502, 128, { 1, 0, 0, 0 }) = 32 Shows that the process originally was bound to an

[Bug libgomp/37586] OpenMP thinks that I have 1 processor on an 8 processor pc

2008-09-30 Thread rrpeter at sandia dot gov
--- Comment #6 from rrpeter at sandia dot gov 2008-09-30 15:54 --- Subject: Re: OpenMP thinks that I have 1 processor on an 8 processor pc jakub at gcc dot gnu dot org wrote: > --- Comment #5 from jakub at gcc dot gnu dot org 2008-09-20 08:22 --- > No, I didn't mean to ask yo

[Bug libgomp/37586] OpenMP thinks that I have 1 processor on an 8 processor pc

2008-09-20 Thread jakub at gcc dot gnu dot org
--- Comment #5 from jakub at gcc dot gnu dot org 2008-09-20 08:22 --- No, I didn't mean to ask you to try to work around it, I asked you to investigate why omp_get_num_procs returns 1 instead of 8. The gcc 4.3 vs. 4.4 difference only affects omp_get_max_threads, not omp_get_num_procs, s

[Bug libgomp/37586] OpenMP thinks that I have 1 processor on an 8 processor pc

2008-09-19 Thread rrpeter at sandia dot gov
--- Comment #4 from rrpeter at sandia dot gov 2008-09-19 22:01 --- Subject: Re: OpenMP thinks that I have 1 processor on an 8 processor pc jakub at gcc dot gnu dot org wrote: > --- Comment #3 from jakub at gcc dot gnu dot org 2008-09-19 21:45 --- > As already said in the open

[Bug libgomp/37586] OpenMP thinks that I have 1 processor on an 8 processor pc

2008-09-19 Thread jakub at gcc dot gnu dot org
-- jakub at gcc dot gnu dot org changed: What|Removed |Added Status|UNCONFIRMED |WAITING http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37586

[Bug libgomp/37586] OpenMP thinks that I have 1 processor on an 8 processor pc

2008-09-19 Thread jakub at gcc dot gnu dot org
--- Comment #3 from jakub at gcc dot gnu dot org 2008-09-19 21:45 --- As already said in the openmp.org forum, omp_get_num_procs () will only return smaller number than the number of system CPUs online, if GOMP_CPU_AFFINITY env var is used, or if the calling process and/or thread has CPU

[Bug libgomp/37586] OpenMP thinks that I have 1 processor on an 8 processor pc

2008-09-19 Thread rrpeter at sandia dot gov
--- Comment #2 from rrpeter at sandia dot gov 2008-09-19 16:59 --- Subject: Re: OpenMP thinks that I have 1 processor on an 8 processor pc rguenth at gcc dot gnu dot org wrote: > --- Comment #1 from rguenth at gcc dot gnu dot org 2008-09-19 14:43 > --- > "I tried setting the

[Bug libgomp/37586] OpenMP thinks that I have 1 processor on an 8 processor pc

2008-09-19 Thread rguenth at gcc dot gnu dot org
--- Comment #1 from rguenth at gcc dot gnu dot org 2008-09-19 14:43 --- "I tried setting the environment variable OMP_NUM_THREADS to 2 and got 2 threads, but only one processor was running the job." this suggests your operating system is limiting your job to one CPU. -- rguenth at g