From: benkirk Date: Mon, 18 Feb 2002 19:48:59 +0000 (+0000) Subject: Added sysconf(_SC_NPROC_ONLN) call for SGI to determine the number of available proce... X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=18c777c6b4f43945fd0ee21f3b3ac8a8b258e398;p=dealii-svn.git Added sysconf(_SC_NPROC_ONLN) call for SGI to determine the number of available processors when in multithread mode git-svn-id: https://svn.dealii.org/trunk@5523 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/base/source/multithread_info.cc b/deal.II/base/source/multithread_info.cc index 5c98aeda5e..50c152f9af 100644 --- a/deal.II/base/source/multithread_info.cc +++ b/deal.II/base/source/multithread_info.cc @@ -23,6 +23,10 @@ # include #endif +#if defined(__sgi__) +# include +#endif + @@ -61,6 +65,15 @@ unsigned int MultithreadInfo::get_n_cpus() } +#elif defined(__sgi__) + + +unsigned int MultithreadInfo::get_n_cpus() +{ + return sysconf(_SC_NPROC_ONLN); +} + + #else // if you get to see this warning, then this can have two reasons: either