1
edit
Changes
SLEEPy
,→Batch Sorting
=== Batch Sorting ===
CSV Data: <syntaxhighlight lang="c" lineenclose="1none" >
-55.558252,63.051427,-27.793776,
-75.622534,61.212279,-16.283311,
</syntaxhighlight>
Code:
<syntaxhighlight lang="c" line="1" >
/* file: sorting_batch.cpp
</syntaxhighlight>
Results:
[[File:DAAL-Sort-Batch.PNG|Left|alt=DAAL Sort Batch.]]
The data is sorted from smallest to largest per column.
Data Blocks:
{|
|<syntaxhighlight lang="c" line="1">
dataSource.loadDataBlock(5);
//dataSource.loadDataBlock(5);
</syntaxhighlight>
|<syntaxhighlight lang="c" line="1">
dataSource.loadDataBlock(5);
dataSource.loadDataBlock(5);
</syntaxhighlight>
|-
|[[File:DAAL-sort-blocks1.PNG|Center|alt=DAAL Sort Block.]]
|[[File:DAAL-sort-blocks2.PNG|Center|alt=DAAL Sort Block.]]
|}
"Blocks" of data are being loaded 5 rows at a time. This allows us to easily section off data to process.
This is also one way of distributing data to MPI etc.
== Useful Link ==
# https://software.intel.com/en-us/daal