]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Added sysconf(_SC_NPROC_ONLN) call for SGI to determine the number of available proce...
authorbenkirk <benkirk@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 18 Feb 2002 19:48:59 +0000 (19:48 +0000)
committerbenkirk <benkirk@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 18 Feb 2002 19:48:59 +0000 (19:48 +0000)
git-svn-id: https://svn.dealii.org/trunk@5523 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/base/source/multithread_info.cc

index 5c98aeda5ee39b130b9d6e59a4156d5d9b1f7304..50c152f9af7ede8165b45f0fa04dcd35bdc1720d 100644 (file)
 #  include <unistd.h>
 #endif
 
+#if defined(__sgi__)
+#  include <unistd.h>
+#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

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.