-
Notifications
You must be signed in to change notification settings - Fork 0
/
louvain_cuda_constants.cuh
executable file
·40 lines (30 loc) · 1.15 KB
/
louvain_cuda_constants.cuh
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#ifndef LOUVAIN_CUDACONSTANTS_CUH
#define LOUVAIN_CUDACONSTANTS_CUH
#define SHARED_TABLE_SIZE 479 // Must be a Prime
#define WARP_TABLE_SIZE_1 127 // Must be a Prime
#define CAPACITY_FACTOR_NUMERATOR 2
#define CAPACITY_FACTOR_DENOMINATOR 3
#define PHY_WRP_SZ 32
#define HALF_WARP 16
#define QUARTER_WARP 8
#define CHUNK_PER_WARP 32
// #define NR_THREAD_PER_BLOCK 128
#define MODCURRCOMM_SIZE_FACTOR 40
#define FINDING_UNIQCOMM_NUM_BLOCKS 16
#define FINDING_UNIQCOMM_BLOCK_SIZE 768
// #define FINDING_UNIQCOMM_ARRAY_SIZE 1048576
// #define FINDING_UNIQCOMM_ARRAY_SIZE 2097152
// #define FINDING_UNIQCOMM_ARRAY_SIZE 4194304
// #define FINDING_UNIQCOMM_ARRAY_SIZE 6291456
//#define FINDING_UNIQCOMM_ARRAY_SIZE 7110000
// #define FINDING_UNIQCOMM_ARRAY_SIZE 9291456
//#define FINDING_UNIQCOMM_ARRAY_SIZE 16777216
#define FINDING_UNIQCOMM_ARRAY_SIZE 20971520
// #define FINDING_UNIQCOMM_ARRAY_SIZE 33554432
// #define FINDING_UNIQCOMM_ARRAY_SIZE 50331648
// #define FINDING_UNIQCOMM_ARRAY_SIZE 67108864
// #define FINDING_UNIQCOMM_ARRAY_SIZE 100663296
#define FINDING_UNIQCOMM_FACTOR 1
#define FLAG_FREE 0
#define PRINTALL 0
#endif /* LOUVAIN_CUDACONSTANTS_CUH */