Skip to content

Commit

Permalink
Debuging thread_pool in spack CI.
Browse files Browse the repository at this point in the history
  • Loading branch information
Charles PIGNEROL committed Feb 6, 2024
1 parent 0a6a6c3 commit a4d113b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/tests/thread_pool.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,9 @@ int main (int argc, char* argv[])
cout << "Computer " << NetworkData::getCurrentHostName ( ) << " has "
<< nbProcs << " processors." << endl;

ThreadPool::initialize (nbProcs / 3);
const size_t nbWorkers = nbProcs >= 48 ? 16 : nbProcs / 3;
ThreadPool::initialize (nbWorkers / 3);
// ThreadPool::initialize (nbProcs / 3);
srand (time (NULL));

size_t i = 0;
Expand Down

0 comments on commit a4d113b

Please sign in to comment.