Skip to content

Commit a4d113b

Browse files
author
Charles PIGNEROL
committed
Debuging thread_pool in spack CI.
1 parent 0a6a6c3 commit a4d113b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/tests/thread_pool.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,9 @@ int main (int argc, char* argv[])
133133
cout << "Computer " << NetworkData::getCurrentHostName ( ) << " has "
134134
<< nbProcs << " processors." << endl;
135135

136-
ThreadPool::initialize (nbProcs / 3);
136+
const size_t nbWorkers = nbProcs >= 48 ? 16 : nbProcs / 3;
137+
ThreadPool::initialize (nbWorkers / 3);
138+
// ThreadPool::initialize (nbProcs / 3);
137139
srand (time (NULL));
138140

139141
size_t i = 0;

0 commit comments

Comments
 (0)