https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78152
--- Comment #7 from Steve Kargl <sgk at troutmask dot apl.washington.edu> --- On Tue, Nov 01, 2016 at 11:06:30PM +0000, jvdelisle at charter dot net wrote: > > I had a meeting with Damian Rousan today and we briefly talked about > OpenCoarrays. He has mentioned on the gfortran list about enabling > it into the build of gfortran if a user chooses to do so. So Ir > thought I would take a look. Damian has sent a patch to start the process of incorporating OpenCoarrays into GCC. But, I believe that this needs a build maintainer or global maintainer to approve it. > I am running his install script now, and one issue is that > it builds gcc itself in single thread mode. I want to modify > this so that if it detects multiple cores available, it can ask > the user if they want to use these during build of gcc. > > On Linux I can cat /proc/cpuinfo to get at the information > about the machine. > > Is there an equivalent FreeBSD way to query number of cores available? > sysctl command may be of help. On troutmask, I have % sysctl hw.ncpu hw.ncpu: 8