1 //------------------------------------------------------------------------------ 2 // GB_defaults.h: default parameter settings 3 //------------------------------------------------------------------------------ 4 5 // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved. 6 // SPDX-License-Identifier: Apache-2.0 7 8 //------------------------------------------------------------------------------ 9 10 #ifndef GB_DEFAULTS_H 11 #define GB_DEFAULTS_H 12 13 //------------------------------------------------------------------------------ 14 // default options 15 //------------------------------------------------------------------------------ 16 17 // These parameters define the content of values that can be 18 // used as inputs to GxB_*Option_set. 19 20 // The default format is by row (CSR). 21 #define GB_HYPER_SWITCH_DEFAULT (0.0625) 22 23 // compile SuiteSparse:GraphBLAS with "-DBYCOL" to make GxB_BY_COL the default 24 // format 25 #ifdef BYCOL 26 #define GB_FORMAT_DEFAULT GxB_BY_COL 27 #else 28 #define GB_FORMAT_DEFAULT GxB_BY_ROW 29 #endif 30 31 // by default, give each thread at least 64K units of work to do 32 #define GB_CHUNK_DEFAULT (64*1024) 33 34 // initial size of the pending tuples 35 #define GB_PENDING_INIT 256 36 37 #endif 38 39