]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fixed MultiThread info on Intel Macs.
authorLuca Heltai <luca.heltai@sissa.it>
Mon, 12 Nov 2007 15:58:32 +0000 (15:58 +0000)
committerLuca Heltai <luca.heltai@sissa.it>
Mon, 12 Nov 2007 15:58:32 +0000 (15:58 +0000)
git-svn-id: https://svn.dealii.org/trunk@15487 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/base/source/multithread_info.cc
deal.II/doc/news/changes.h

index a4f5c608bbdc8abde12bb518866836166e4a8495..520d5cbdae0d5191a4dd5d3ded908a034e5e02c6 100644 (file)
@@ -27,7 +27,7 @@
 #  include <unistd.h>
 #endif
 
-#if defined(__MACH__) && defined(__ppc__) && defined(__APPLE__)
+#if defined(__MACH__) && defined(__APPLE__)
 #  include <sys/types.h>
 #  include <sys/sysctl.h>
 #endif
@@ -88,9 +88,9 @@ unsigned int MultithreadInfo::get_n_cpus()
   return sysconf(_SC_NPROC_ONLN);
 }
 
-#  elif defined(__MACH__) && defined(__ppc__) && defined(__APPLE__)
+#  elif defined(__MACH__) && defined(__APPLE__)
 // This is only tested on a dual G5 2.5GHz running MacOSX 10.3.6 
-// and gcc version 3.3 20030304 (Apple Computer, Inc. build 1666)
+// and on an Intel Mac Book Pro.
 // If it doesnt work please contact the mailinglist.
 unsigned int MultithreadInfo::get_n_cpus()
 {
index 2841e6f9133a5b979993379fb97eef3205cd2c61..c6856b32cd983bb52c5a530f28bd2d3acb19c598 100644 (file)
@@ -120,6 +120,12 @@ inconvenience this causes.
 <h3>base</h3>
 
 <ol>
+  <li> <p>Fixed: MultithreadInfo::n_cpus now gives the correct result
+  also on my Intel MacBook Pro.
+  <br>
+  (Luca Heltai 2007/11/12)
+  </p> </li>
+
   <li> <p>New: There is now a template numbers::NumberTraits that provides
   the means to implement linear algebra and other algorithms for both real
   and complex data types.

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.