Changes

Jump to: navigation, search

SLEEPy

260 bytes removed, 12:11, 12 April 2016
What is DAAL
# [mailto:jsiu3@senecacollege.ca?subject=dps921 Jacky Siu]
# [mailto:wdelhia@senecacollege.ca?subject=dps921 Woodson Delhia]
 
== Intro OLD ==
Local DAAL Examples Location: C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2016\windows\daal\examples
 
Data: http://open.canada.ca/data/en/dataset/cad804cd-454e-4bd7-9f22-fcee64f60719
 
New Data: http://open.canada.ca/data/en/dataset/be3880f2-0d04-4583-8265-611b231ebce8
 
Parser code: https://software.intel.com/en-us/node/610127
 
Low Order Moments: https://software.intel.com/en-us/node/599561
 
Compressor: https://software.intel.com/en-us/node/599552
 
Our goal is to parse & process this crime data and to add more meaning to said data. Using various parallel techniques taught in the course and comparing them via the DAAL library.
== Introduction ==
* MKL focuses on computation. DAAL focuses on the entire data flow (aquisition, transformation, processing).
* Optimized for all kinds of Intel based devices (from data center to home computers)
* Vectorization method used for optimization
DAAL supports 3 processing modes
[[File:Daal-flow.png|center|alt=DAAL Data Flow.]]
 
 
 
 
 
[[Image:Graph.PNG|center]]
== How DAAL Works ==
[[Image:DAALDataflow.PNG|center|600px ]]
 
== Installing DAAL ==
 
DAAL is already bundle with Intel® Parallel Studio XE 2016 Composer, Professional, or Cluster Edition, but you can also purchase a stand-alone version. To install it, you will have to execute the batch file to setup the environment.
 
 
By default, the batch to setup the environment is located at the ''<install dir>'' at ''C:\Program files (x86)\IntelSWTools\compilers_and_libraries_2016.x.xxx\windows''.
 
 
<u>'''Set Environment Variables'''</u>
 
Run the ''<install dir>\daal\bin\daalvars.bat'' script as appropriate to your target architecture.
 
''IA-32 architecture:''
 
daalvars.bat ia32
 
''Intel® 64 architecture:''
 
daalvars.bat intel64
 
 
[[File:DAAL_Environment.png]]
 
 
<u>'''Compiling'''</u>
 
Tells the compiler to link with standard threaded Intel DAAL:
 
/Qdaal or
/Qdaal:parallel
 
Tells the compiler to link with sequential version of Intel DAAL:
 
/Qdaal:sequential
 
Visual Studio:
 
# In Solution Explorer, go to '''Project''' > '''Properties''' > '''Configuration Properties''' > '''Intel Performance Libraries'''.
# From the '''Use Intel DAAL''' drop-down menu, select the appropriate linking method. For example: ''Multi-threaded Static Library''.
 
 
 
'''''NOTE:''' DAAL may require you to also enable TBB. ''
 
 
[[File:DAAL_VS_Setup.png]]
 
 
<u>'''Library Files'''</u>
 
{| class="wikitable"
!
 
! Single-threaded
 
(non-threaded)
 
Intel DAAL
 
! Multi-threaded
 
(internally threaded)
 
Intel DAAL
 
|-
 
| ''Static linking'' ||
 
daal_core.lib
 
daal_sequential.lib
 
||
 
daal_core.lib
 
daal_thread.lib
 
|-
 
| ''Dynamic linking'' ||
 
daal_core_dll.lib
 
||
 
daal_core_dll.lib
 
|}
== Code Examples ==
/*******************************************************************************
! Copyright(C) 2014-2015 Intel Corporation. All Rights Reserved.
!
! The source code, information and material ("Material") contained herein is
! owned by Intel Corporation or its suppliers or licensors, and title to such
! Material remains with Intel Corporation or its suppliers or licensors. The
! Material contains proprietary information of Intel or its suppliers and
! licensors. The Material is protected by worldwide copyright laws and treaty
! provisions. No part of the Material may be used, copied, reproduced,
! modified, published, uploaded, posted, transmitted, distributed or disclosed
! in any way without Intel's prior express written permission. No license
! under any patent, copyright or other intellectual property rights in the
! Material is granted to or conferred upon you, either expressly, by
! implication, inducement, estoppel or otherwise. Any license under such
! intellectual property rights must be express and approved by Intel in
! writing.
!
! *Third Party trademarks are the property of their respective owners.
!
! Unless otherwise agreed by Intel in writing, you may not remove or alter
! this notice or any other notice embedded in Materials by Intel or Intel's
! suppliers or licensors in any way.
!
!*******************************************************************************
! Content:
! C++ example of a compressor
!
!******************************************************************************/
 
/**
* <a name="DAAL-EXAMPLE-CPP-COMPRESSOR"></a>
* \example compressor.cpp
*/
#include "daal.h"
== Useful Link Links ==
# https://software.intel.com/en-us/daal
# Sorting: https://software.intel.com/en-us/node/610127
# Data Structure: https://software.intel.com/en-us/node/599565
# Compressor: https://software.intel.com/en-us/node/599552
# DAAL Guide Book: https://software.intel.com/en-us/daal-programming-guide

Navigation menu