diff --git a/dataflow_cpp/include/embb/dataflow/network.h b/dataflow_cpp/include/embb/dataflow/network.h index 7a20c58..7dccb0b 100644 --- a/dataflow_cpp/include/embb/dataflow/network.h +++ b/dataflow_cpp/include/embb/dataflow/network.h @@ -681,8 +681,11 @@ class Network { class Network : public internal::ClockListener { public: - explicit Network(int slices) + explicit Network(int slices = 0) : sink_counter_(NULL), slices_(slices), sched_(NULL) { + if (0 >= slices) { + slices_ = int(embb_core_count_available())*4; + } sched_ = embb::base::Allocation::New(slices_); sink_counter_ = reinterpret_cast*>( embb::base::Allocation::Allocate(