omp_get_num_procs() not working on macintosh?

CSights csights@fastmail.fm
Mon Feb 18 21:59:00 GMT 2008


> > 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 with Darwin v 8.

$ uname -v
Darwin Kernel Version 8.11.1: Wed Oct 10 18:23:28 PDT 2007; 
root:xnu-792.25.20~1/RELEASE_I386



More information about the Gcc mailing list