Skip to content
Snippets Groups Projects
Commit 32be615c authored by Juan Miguel Carceller's avatar Juan Miguel Carceller Committed by Marco Clemencic
Browse files

Support oneTBB

parent 17830b25
No related branches found
No related tags found
1 merge request!1495Support oneTBB
...@@ -34,8 +34,6 @@ ...@@ -34,8 +34,6 @@
#include "boost/algorithm/string.hpp" #include "boost/algorithm/string.hpp"
#include "boost/thread.hpp" #include "boost/thread.hpp"
#include "boost/tokenizer.hpp" #include "boost/tokenizer.hpp"
// DP waiting for the TBB service
#include "tbb/tbb_stddef.h"
// Instantiation of a static factory class used by clients to create instances of this service // Instantiation of a static factory class used by clients to create instances of this service
DECLARE_COMPONENT( AvalancheSchedulerSvc ) DECLARE_COMPONENT( AvalancheSchedulerSvc )
......
...@@ -117,10 +117,6 @@ public: ...@@ -117,10 +117,6 @@ public:
/// Constructor /// Constructor
using extends::extends; using extends::extends;
/// Destructor. Need to enforce noexcept specification as otherwise the noexcept(false) destructor of the
/// tbb::task_group member violates the contract
~AvalancheSchedulerSvc() noexcept override {}
/// Initialise /// Initialise
StatusCode initialize() override; StatusCode initialize() override;
......
...@@ -33,7 +33,7 @@ class IRndmGenSvc; ...@@ -33,7 +33,7 @@ class IRndmGenSvc;
namespace HiveRndm { namespace HiveRndm {
typedef tbb::spin_rw_mutex_v3 HiveNumbersMutex; typedef tbb::spin_rw_mutex HiveNumbersMutex;
class GAUDI_API HiveNumbers { class GAUDI_API HiveNumbers {
private: private:
......
...@@ -13,8 +13,6 @@ ...@@ -13,8 +13,6 @@
#include "GaudiKernel/ConcurrencyFlags.h" #include "GaudiKernel/ConcurrencyFlags.h"
#include "ThreadInitTask.h" #include "ThreadInitTask.h"
#include "tbb/task_group.h"
#include <chrono> #include <chrono>
#include <thread> #include <thread>
...@@ -114,7 +112,7 @@ StatusCode ThreadPoolSvc::initPool( const int& poolSize ) { ...@@ -114,7 +112,7 @@ StatusCode ThreadPoolSvc::initPool( const int& poolSize ) {
Gaudi::Concurrency::ConcurrencyFlags::setNumThreads( m_threadPoolSize ); Gaudi::Concurrency::ConcurrencyFlags::setNumThreads( m_threadPoolSize );
// Create the task arena to run all algorithms // Create the task arena to run all algorithms
m_arena = tbb::task_arena( m_threadPoolSize + 1 ); m_arena.initialize( m_threadPoolSize + 1 );
// Create the barrier for task synchronization at termination // Create the barrier for task synchronization at termination
// (here we increase the number of threads by one to account for calling thread) // (here we increase the number of threads by one to account for calling thread)
......
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