From b8ffd99cc5ed9802d592a987f3fed3dea880890a Mon Sep 17 00:00:00 2001 From: wolf Date: Wed, 17 Nov 2004 20:25:34 +0000 Subject: [PATCH] Add a few comments. git-svn-id: https://svn.dealii.org/trunk@9793 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/base/source/multithread_info.cc | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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; -- 2.39.5