Intel® Data Analytics Acceleration Library (Intel® DAAL) provides a Java API and the ease-of-use for Java programmers. This article discusses how to build and run applications with the Eclipse IDE (one of the most popular Java IDEs). The procedures outlined in this article should also be applicable to other Java IDEs.
If you want to build and run Java applications from the command line, see instructions from Getting Started with Intel Data Analytics Acceleration Library.
To make Intel DAAL classes and methods available to your application, we need to import necessary Intel DAAL packages. For example,
import com.intel.daal.algorithms.pca.*; import com.intel.daal.data_management.data.NumericTable; import com.intel.daal.data_management.data_source.FileDataSource; import com.intel.daal.data_management.data_source.DataSource; import com.intel.daal.services.*;
Java build path configuration can be accessed from Properties (right-clicking the project name).
JavaAPI.dll. The picture below shows an example on Windows. On Linux or OS X, set it to the directory containing
daal.jaron the build path, as shown below.
Run/Debug settings are also accessible from project Properties.
PATHenvironment variable and set its value to be the directories containing, respectively, DAAL runtime library, OpenMP runtime library, and Intel TBB runtime library. Here's an example on Windows:
C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2016.0.110\windows\redist\intel64\daal;
C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2016.0.110\windows\redist\intel64\compiler;
C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2016.0.110\windows\redist\intel64\tbb\vc_mt
LD_LIBRARY_PATH; and similarly its value should be the paths containing the DAAL runtime library, the OpenMP runtime library, and the Intel TBB runtime library.
These are the settings specifically necessary for using Intel DAAL in our Java project. We should now be able to build, run, and debug our project from within Eclipse. Refer to the online documentation to learn more about Intel DAAL.
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