From: wolf Date: Wed, 17 Nov 2004 20:25:34 +0000 (+0000) Subject: Add a few comments. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b8ffd99cc5ed9802d592a987f3fed3dea880890a;p=dealii-svn.git Add a few comments. git-svn-id: https://svn.dealii.org/trunk@9793 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/base/source/multithread_info.cc b/deal.II/base/source/multithread_info.cc index f01523cc7f..0fb165aa12 100644 --- a/deal.II/base/source/multithread_info.cc +++ b/deal.II/base/source/multithread_info.cc @@ -32,10 +32,22 @@ #if DEAL_II_USE_MT == 1 +/* Detecting how many processors a given machine has is something that + varies greatly between operating systems. For a few operating + systems, we have figured out how to do that below, but some others + are still missing. If you find a way to do this on your favorite + system, please let us know. + */ + + # if defined(__linux__) unsigned int MultithreadInfo::get_n_cpus() { + // on linux, we simply count the + // number of lines listing + // individual processors when + // reading from /proc/cpuinfo std::ifstream cpuinfo; std::string search; unsigned int nCPU = 0;