Skip to content
Snippets Groups Projects
Commit d2c8aa8d authored by Felix Weiglhofer's avatar Felix Weiglhofer
Browse files

online: Use same number of threads as openmp.

parent f8a8906f
No related branches found
No related tags found
1 merge request!1769online: Use same number of threads as openmp.
Pipeline #28956 passed
...@@ -13,6 +13,7 @@ ...@@ -13,6 +13,7 @@
#include "CaHit.h" #include "CaHit.h"
#include "CaInitManager.h" #include "CaInitManager.h"
#include "CaParameters.h" #include "CaParameters.h"
#include "compat/OpenMP.h"
#include "yaml/Yaml.h" #include "yaml/Yaml.h"
#include <boost/archive/binary_oarchive.hpp> #include <boost/archive/binary_oarchive.hpp>
...@@ -83,7 +84,8 @@ void TrackingChain::Init() ...@@ -83,7 +84,8 @@ void TrackingChain::Init()
// ------ Initialize CA framework // ------ Initialize CA framework
fCaMonitor.Reset(); fCaMonitor.Reset();
fCaFramework.SetNofThreads(Opts().NumOMPThreads() == std::nullopt ? 1 : *(Opts().NumOMPThreads())); fCaFramework.SetNofThreads(Opts().NumOMPThreads() == std::nullopt ? openmp::GetMaxThreads()
: *(Opts().NumOMPThreads()));
fCaFramework.ReceiveParameters(std::move(parameters)); fCaFramework.ReceiveParameters(std::move(parameters));
fCaFramework.Init(ca::Framework::TrackingMode::kMcbm); fCaFramework.Init(ca::Framework::TrackingMode::kMcbm);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment