Quantcast
Channel: 平板电脑
Viewing all articles
Browse latest Browse all 500

Tutorial for Intel® DAAL : Using simple C++ example

$
0
0

System Environment

Intel® DAAL version : 2016 Gold Initial Release (w_daal_2016.0.110.exe)

OS : Windows 8.1

IDE : Visual Studio 2013

 

Overview

 Intel® DAAL is a part of Intel® Parallel Studio XE 2016, a developer toolkit for HPC and technical computing applications. Intel® DAAL is a powerful library for big data developers that turns large data clusters into meaningful information with advanced analytics algorithms.

 In this tutorial, we will see how to build and run Intel® DAAL C++ examples included in the package.
 

Finding the examples

 By default, the examples are located at

c:\Program Files (x86)\intelSWTools\compilers_and_libraries\windows\daal\examples

in 'examples' directory, there are example projects in C++ and Java language respectively. The example data according to three different models, batch, distributed and online, for the projects is located in 'data' directory.

 It is recommended to copy the examples to somewhere else where you don't need the administrator access in order to make it easy to modify, build and run.

 

Building the examples

  First, open the 'DAALExamples.sln' solution file located in

 <DAAL Examples>\cpp

Select all projects and open up 'Properties' -> Clink 'Configuration Manager' at the upper right corner -> Change active solution platrofm according to your platform. (e.g. Win32 -> x64 )

As the next step, we need to enable DAAL for the projects. Propertise -> Intel Performance Libraries -> Use Intel DAAL -> Choose 'Default Linking Method'

Click the build menu -> Build Solution ( or Ctrl + Shitf + B )

 

Running the examples

 There is a couple more steps to take before running DAAL applications.

 First, to setup DAAL environment variables, run 'daalvars.bat <arch>'

 Second,set redist runtime dlls ->

PATH=C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2016.0.110\windows\redist\intel64_win\daal;
C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2016.0.110\windows\redist\intel64_win\compiler;
C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2016.0.110\windows\redist\intel64_win\tbb\vc_mt;%PATH%

 

 Now go to <examples>\cpp and run one of the examples

  • Big Data
  • Big Data Use Cases
  • 开发人员
  • 合作伙伴
  • 教授
  • 学生
  • Microsoft Windows* (XP, Vista, 7)
  • Microsoft Windows* 10
  • Microsoft Windows* 8.x
  • 安卓*
  • 游戏开发
  • 物联网
  • 网络
  • 服务器
  • Windows*
  • C/C++
  • 高级
  • 入门级
  • 中级
  • 英特尔® 数据分析加速库
  • 数据中心
  • 开发工具
  • 物联网
  • 并行计算
  • 笔记本电脑
  • 电话
  • 服务器
  • 平板电脑
  • 桌面
  • URL
  • 代码样本
  • 开始

  • Viewing all articles
    Browse latest Browse all 500

    Latest Images

    Trending Articles

    <script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>