KDB samples included with the Intel® Data Analytics Acceleration Library (Intel® DAAL) are designed to show how to use this library with a KDB database in a C++ application.

Unzip Intel® DAAL samples archive to your working directory (<sample_dir>)

System Requirements

You can use Intel® DAAL KDB samples on Linux*, Windows*, and OS X* operating systems. For a detailed list of Intel® DAAL hardware and software requirements, refer to release notes of Intel® DAAL product you are using.

KDB implementations against which Intel® DAAL has been validated:

Note: Intel® DAAL is expected to work on other KDB version as well. Let us know if you have any troubles with the distribution you are using.

Preparation Before Build

KDB support

You can download and install the KDB application from the https://kx.com/software.php web page. Make sure to replace the dataSourceName, dataSourcePort, dataSourceUsername and dataSourcePassword names in the datasource_kdb.cpp sample file with the actual database address and credentials you plan to use:

Also, make sure to set the environment variables KDB_HEADER_PATH and KDB_LIBRARY_PATH with the correct paths before running the sample.

Setting Up the Build Environment 

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 

Build and Run Instructions

On Windows*

To build Intel® DAAL KDB C++ samples, go to the C++ KDB samples directory and execute the launcher command with the build parameter:

cd <sample_dir>\cpp\kdb

launcher.bat {ia32|intel64} build

The command creates the .\_results\ia32 or .\_results\intel64 directory and builds *.exe executables and *.exe libraries, as well as creates a log file for build results.

To run Intel DAAL KDB C++ samples, go to the C++ KDB samples directory and execute the launcher command with the run parameter:

cd <sample_dir>\cpp\kdb

launcher.bat {ia32|intel64} run

Select the same architecture parameter as you provided to the launcher command with the build parameter.

For each sample, the results are placed into the .\_results\ia32\<sample name>\.res or .\_results\intel64\<sample name>\.res file, depending on the specified architecture.

On Linux*

To build Intel® DAAL KDB C++ samples, go to the C++ KDB samples directory and execute the make command:

cd <sample_dir>/cpp/kdb

make {libia32|soia32|libintel64|sointel64}

        compiler={intel|gnu}

        mode=build

From the {libia32|soia32|libintel64|sointel64} parameters, select the one that matches the architecture parameter you provided to the daalvars.sh script and that has the prefix that matches the type of executables you want to build: lib for static and so for dynamic executables.

The command creates a directory for the chosen compiler, architecture, and library extension (a or so). For example: _results/intel_intel64_a.

To run Intel DAAL KDB C++ samples, go to the C++ KDB 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/kdb

make libintel64 mode=run

The make command builds a static library for the Intel® 64 architecture and runs the executable.

On OS X*

To build Intel® DAAL KDB C++ samples, go to the C++ KDB samples directory and execute the make command:

cd <sample_dir>/cpp/kdb

make {libia32|dylibia32|libintel64|dylibintel64}

        compiler={intel|gnu|clang}

        mode=build

From the {libia32|dylibia32|libintel64|dylibintel64} parameters, select the one that matches the architecture parameter you provided to the daalvars.sh script and that has the prefix that matches the type of executables you want to build: lib for static and dylib for dynamic executables.

The command creates a directory for the chosen compiler, architecture, and library extension (a or dylib). For example: _results/intel_intel64_a.

To run Intel DAAL KDB C++ samples, go to the C++ KDB 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/kdb

make libintel64 mode=run

The make command builds a static library for the Intel® 64 architecture and runs the executable.

Legal Information

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

Optimization Notice

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