We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b4e8e2f commit 0240014Copy full SHA for 0240014
2 files changed
examples/local/fibonacci/source/nosv.cpp
@@ -65,7 +65,7 @@ int main(int argc, char **argv)
65
66
// Adding it to the list
67
auto itr = cr.begin();
68
- auto numCores = std::max(8ul, cr.size());
+ auto numCores = std::min(8ul, cr.size());
69
for (size_t i = 0; i < numCores; i++)
70
{
71
computeResources.push_back(*itr);
examples/local/fibonacci/source/pthreads.cpp
@@ -59,7 +59,7 @@ int main(int argc, char **argv)
59
60
61
62
63
64
0 commit comments