Message-passing interface (MPI) samples included with the Intel® Data Analytics Acceleration Library (Intel® DAAL) are designed to show how to use this library with the Intel® MPI library in a C++ application.
Unzip Intel® DAAL samples archive to your working directory (<sample_dir>)
The Intel® DAAL includes distributed algorithms that can run on MPI-based cluster environments of Linux* and Windows* operating systems with the Intel® MPI library. For a detailed list of Intel® DAAL hardware and software requirements, refer to release notes of Intel® DAAL product you are using.
To link an application with the Intel® MPI library, do the following:
Check the documentation that comes with your MPI implementation for implementation-specific details of linking.
Before you build the sample, you must set certain environment variables that define the location of related libraries. The Intel® DAAL includes the daalvars scripts that you can run to set environment variables
For more information about setting environment variables for different product suites, refer to product user guide
To build Intel® DAAL MPI C++ samples, go to the C++ MPI samples directory and execute the launcher command with the build parameter:
cd <sample_dir>\cpp\mpi
launcher.bat build
The command creates the .\_results\intel64 directory and builds *.exe executables and *.exe libraries, as well as creates a log file for build results.
To run Intel DAAL MPI C++ samples, go to the C++ MPI samples directory and execute the launcher command with the run parameter:
cd <sample_dir>\cpp\mpi
launcher.bat run
For each sample, the results are placed into the .\_results\intel64\<sample name>\.res file.
To build Intel® DAAL MPI C++ samples, go to the C++ MPI samples directory and execute the make command:
cd <sample_dir>/cpp/mpi
make {libintel64|sointel64}
sample=<sample_name>
mode=build
From the {libintel64|sointel64} parameters, select the one that has the prefix that matches the type of executables you want to build: lib for static and so for dynamic executables.
The names of the samples are available in the daal.lst file. If a sample name is not be provided, all samples are built.
The command creates a directory for the chosen library extension (a or so). For example: _results/intel_intel64_a.
To run Intel DAAL MPI C++ samples, go to the C++ MPI samples directory and execute the make command in the run mode. For example, if you run the daalvars script with the intel64 target:
cd <sample_dir>/cpp/mpi
make libintel64 sample=svd_fast_distributed_mpi mode=run
The make command builds a static library for the Intel® 64 architecture and the svd_fast_distributed_mpi.cpp sample and runs the executable.
Intel, and the Intel logo are trademarks of Intel Corporation in the U.S. and/or other countries.
*Other names and brands may be claimed as the property of others.
© Copyright 2016, Intel Corporation
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 |