constants.hpp 1003 B

1234567891011121314151617181920212223242526
  1. //----------------------------------------------------------------------------
  2. /// @file constants.hpp
  3. /// @brief This file contains the constants values used in the algorithms
  4. ///
  5. /// @author Copyright (c) 2016 Francisco José Tapia (fjtapia@gmail.com )\n
  6. /// Distributed under the Boost Software License, Version 1.0.\n
  7. /// ( See accompanying file LICENSE_1_0.txt or copy at
  8. /// http://www.boost.org/LICENSE_1_0.txt )
  9. /// @version 0.1
  10. ///
  11. /// @remarks
  12. //-----------------------------------------------------------------------------
  13. #ifndef __BOOST_SORT_PARALLEL_DETAIL_CONSTANTS_HPP
  14. #define __BOOST_SORT_PARALLEL_DETAIL_CONSTANTS_HPP
  15. // This value is the block size in the block_indirect_sort algorithm
  16. #define BOOST_BLOCK_SIZE 1024
  17. // This value represent the group size in the block_indirect_sort algorithm
  18. #define BOOST_GROUP_SIZE 64
  19. // This value is the minimal number of threads for to use the
  20. // block_indirect_sort algorithm
  21. #define BOOST_NTHREAD_BORDER 6
  22. #endif