omp_get_num_procs() not working on macintosh?

Dominique Dhumieres dominiq@lps.ens.fr
Sun Feb 17 21:26: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



More information about the Gcc mailing list