Skip to content

Commit

Permalink
use all available CPUs by default
Browse files Browse the repository at this point in the history
  • Loading branch information
Soeren Sonnenburg committed Sep 27, 2011
1 parent 95c854a commit 42b836a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/shogun/base/Parallel.cpp
Expand Up @@ -20,8 +20,9 @@

using namespace shogun;

Parallel::Parallel() : refcount(0), num_threads(1)
Parallel::Parallel() : refcount(0)
{
num_threads=get_num_cpus();
}

Parallel::Parallel(const Parallel& orig) : refcount(0)
Expand Down

0 comments on commit 42b836a

Please sign in to comment.