ViennaCL - The Vienna Computing Library  1.7.0
Free open-source GPU-accelerated linear algebra and solver library.
config.hpp
Go to the documentation of this file.
1 #ifndef VIENNACL_LINALG_DETAIL_BISECT_CONFIG_HPP_
2 #define VIENNACL_LINALG_DETAIL_BISECT_CONFIG_HPP_
3 
4 /* =========================================================================
5  Copyright (c) 2010-2015, Institute for Microelectronics,
6  Institute for Analysis and Scientific Computing,
7  TU Wien.
8  Portions of this software are copyright by UChicago Argonne, LLC.
9 
10  -----------------
11  ViennaCL - The Vienna Computing Library
12  -----------------
13 
14  Project Head: Karl Rupp rupp@iue.tuwien.ac.at
15 
16  (A list of authors and contributors can be found in the manual)
17 
18  License: MIT (X11), see file LICENSE in the base directory
19 ============================================================================= */
20 
21 
22 
31 // should be power of two
32 #define VIENNACL_BISECT_MAX_THREADS_BLOCK 256
33 
34 #ifdef VIENNACL_WITH_OPENCL
35 # define VIENNACL_BISECT_MAX_SMALL_MATRIX 256
36 # define VIENNACL_BISECT_MAX_THREADS_BLOCK_SMALL_MATRIX 256
37 #else // if CUDA is used
38 # define VIENNACL_BISECT_MAX_THREADS_BLOCK_SMALL_MATRIX 512 // change to 256 if errors occur
39 # define VIENNACL_BISECT_MAX_SMALL_MATRIX 512 // change to 256 if errors occur
40 #endif
41 
42  #define VIENNACL_BISECT_MIN_ABS_INTERVAL 5.0e-37
43 
44 #endif