Re: omp_get_num_procs() not working on macintosh?

2008-02-18 Thread CSights
> > Perhaps Darwin doesn't define _SC_NPROCESSORS_ONLN > > It is defined on Darwin9: > > [ibook-dhum] f90/bug% grep _SC_NPROCESSORS_ONLN /usr/include/* > /usr/include/unistd.h:#define   _SC_NPROCESSORS_ONLN            58 > > but apparently not for Darwin8. > > Dominique Yep, I'm having trouble wit

omp_get_num_procs() not working on macintosh?

2008-02-17 Thread CSights
Hi, I'm not able to detect the number of processors using omp_get_num_procs() on a macintosh. I've installed gcc/g++ v4.3 from hpc.sourceforge.net (the "Tiger" version) [Url 1 below]. (Installed = extracted to /) $ g++ --version g++ (GCC) 4.3.0 20080125 (experimental) I