This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: omp_get_num_procs() not working on macintosh?
- From: CSights <csights at fastmail dot fm>
- To: gcc at gcc dot gnu dot org
- Date: Mon, 18 Feb 2008 16:59:05 -0500
- Subject: Re: omp_get_num_procs() not working on macintosh?
- References: <1203339421.24485.ezmlm@gcc.gnu.org>
> > 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