(git:34ef472)
dbm_hyperparams.h
Go to the documentation of this file.
1 /*----------------------------------------------------------------------------*/
2 /* CP2K: A general program to perform molecular dynamics simulations */
3 /* Copyright 2000-2024 CP2K developers group <https://cp2k.org> */
4 /* */
5 /* SPDX-License-Identifier: BSD-3-Clause */
6 /*----------------------------------------------------------------------------*/
7 
8 #ifndef DBM_HYPERPARAMS_H
9 #define DBM_HYPERPARAMS_H
10 
11 // TODO: Tune parameters, check if dynamic OpenMP scheduling is really faster?
12 
13 static const float HASHTABLE_FACTOR = 3.0;
14 static const float ALLOCATION_FACTOR = 1.5;
15 static const float SHARDS_PER_THREAD = 1.0;
16 static const int MAX_BATCH_SIZE = 10000;
17 static const int BATCH_NUM_BUCKETS = 1000;
18 static const int INITIAL_NBLOCKS_ALLOCATED = 100;
19 static const int INITIAL_DATA_ALLOCATED = 1024;
20 
21 #endif
22 
23 // EOF
static const float ALLOCATION_FACTOR
static const int MAX_BATCH_SIZE
static const int INITIAL_DATA_ALLOCATED
static const int INITIAL_NBLOCKS_ALLOCATED
static const int BATCH_NUM_BUCKETS
static const float HASHTABLE_FACTOR
static const float SHARDS_PER_THREAD