User Guide

Contents

Exploring the Parallelism in a Concurrent Node

This example explores the parallelism inherent in a node with unlimited concurrency. The node used is a
function_node
. A
source_node
is connected to the
function_node
, as shown below, and eight items are pushed through to the
function_node
from the
source_node
. The
function_node
has a weight of 1s (weight = 1e6). To ensure there are only timing results from the
function_node
, the
source_node
has a comparatively negligible weight of 1e-6s (weight=1). The concurrency specification used is
1, 2, 4, 8
.
exploring parallelism in a concurrent node
analytics report for serial execution with 1 thread
The results are the following:
  • For a serial execution with only 1 thread, the total time is 8s as the same thread evaluates the tasks one after the other.
  • With 2 threads and 2 overlapping tasks, the total time is 4s.
  • With 4 threads and 8 tasks, the total time is 2s.
  • With 8 threads and 8 tasks, all tasks overlap, giving a total time of 1s.

Product and Performance Information

1

Performance varies by use, configuration and other factors. Learn more at www.Intel.com/PerformanceIndex.