Skip to content
Snippets Groups Projects
Commit 7c341946 authored by Marco Clemencic's avatar Marco Clemencic
Browse files

Support oneTBB

Closes #270

See merge request gaudi/Gaudi!1495
parents 17830b25 32be615c
No related branches found
No related tags found
1 merge request!1495Support oneTBB
Pipeline #6366553 passed
......@@ -34,8 +34,6 @@
#include "boost/algorithm/string.hpp"
#include "boost/thread.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
DECLARE_COMPONENT( AvalancheSchedulerSvc )
......
......@@ -117,10 +117,6 @@ public:
/// Constructor
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
StatusCode initialize() override;
......
......@@ -33,7 +33,7 @@ class IRndmGenSvc;
namespace HiveRndm {
typedef tbb::spin_rw_mutex_v3 HiveNumbersMutex;
typedef tbb::spin_rw_mutex HiveNumbersMutex;
class GAUDI_API HiveNumbers {
private:
......
......@@ -13,8 +13,6 @@
#include "GaudiKernel/ConcurrencyFlags.h"
#include "ThreadInitTask.h"
#include "tbb/task_group.h"
#include <chrono>
#include <thread>
......@@ -114,7 +112,7 @@ StatusCode ThreadPoolSvc::initPool( const int& poolSize ) {
Gaudi::Concurrency::ConcurrencyFlags::setNumThreads( m_threadPoolSize );
// 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
// (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