summaryrefslogtreecommitdiff
path: root/boost/sort/block_indirect_sort/blk_detail/constants.hpp
blob: c40724302557ec44d8ecf4734540c77ade13cfb2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
//----------------------------------------------------------------------------
/// @file constants.hpp
/// @brief This file contains the constants values used in the algorithms
///
/// @author Copyright (c) 2016 Francisco José Tapia (fjtapia@gmail.com )\n
///         Distributed under the Boost Software License, Version 1.0.\n
///         ( See accompanying file LICENSE_1_0.txt or copy at
///           http://www.boost.org/LICENSE_1_0.txt  )
/// @version 0.1
///
/// @remarks
//-----------------------------------------------------------------------------
#ifndef __BOOST_SORT_PARALLEL_DETAIL_CONSTANTS_HPP
#define __BOOST_SORT_PARALLEL_DETAIL_CONSTANTS_HPP

// This value is the block size in the block_indirect_sort algorithm
#define BOOST_BLOCK_SIZE 1024

// This value represent the group size in the block_indirect_sort algorithm
#define BOOST_GROUP_SIZE 64

// This value is the minimal number of threads for to use the
// block_indirect_sort algorithm
#define BOOST_NTHREAD_BORDER 6

#endif