Getting Started Guide

Contents

Engines

Random number engines are used for uniformly distributed random numbers generation by using a seed - the initial value that allows to select a particular random number sequence. Initialization is an engine-specific procedure.

Algorithm Input

Engines accept the input described below. Pass the Input ID as a parameter to the methods that provide input for your algorithm. For more details, see Algorithms .
Input ID
Input
tableToFill
Pointer to the numeric table of size
n
x
p
.
This input can be an object of any class derived from
NumericTable
except
CSRNumericTable
,
PackedSymmetricMatrix
,
PackedTriangularMatrix
, and
MergedNumericTable
when it holds one of the above table types.

Algorithm Output

Engines calculate the result described below. Pass the Result ID as a parameter to the methods that access the results of your algorithm. For more details, see Algorithms .
Result ID
Result
randomNumbers
Pointer to the
n
x
p
numeric table with generated random floating-point values of single or double precision. In Intel DAAL, engines are in-place, which means that the algorithm does not allocate memory for the distribution result, but returns pointer to the filled input.
In the current version of the library, engines are used for random number generation only as a parameter of another algorithm.

Parallel Random Number Generation

The following methods that support generation of sequences of random numbers in parallel are supported in library:
  1. Family
    Engines follow the same algorithmic scheme with different algorithmic parameters. The set of the parameters guarantee independence of random number sequences produced by the engines. The example below demonstrates the idea for case when 2 engines from same family are used to generate 2 random sequences.
  2. SkipAhead
    This method skips
    nskip
    elements of the original random sequence. This method allows to produce
    nThreads
    non-overlapping subsequences. The example below demonstrates the idea for case when 2 subsequences are used from the random sequence.
  3. LeapFrog
    This method generates random numbers with a stride of
    nThreads
    .
    threadIdx
    is an index of the current thread. The example below demonstrates the idea for case when 2 subsequences are used from the random sequence.
These methods are represented with member functions of classes that represent functionality described in the Engines section. See API References for details.
Support of these methods is engine-specific.

Product and Performance Information

1

Intel's compilers may or may not optimize to the same degree for non-Intel microprocessors for optimizations that are not unique to Intel microprocessors. These optimizations include SSE2, SSE3, and SSSE3 instruction sets and other optimizations. Intel does not guarantee the availability, functionality, or effectiveness of any optimization on microprocessors not manufactured by Intel. Microprocessor-dependent optimizations in this product are intended for use with Intel microprocessors. Certain optimizations not specific to Intel microarchitecture are reserved for Intel microprocessors. Please refer to the applicable product User and Reference Guides for more information regarding the specific instruction sets covered by this notice.

Notice revision #20110804