forked from RUSH-LAB/Flash
-
Notifications
You must be signed in to change notification settings - Fork 0
/
LSHReservoirSampler_config.h
48 lines (25 loc) · 1.05 KB
/
LSHReservoirSampler_config.h
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
41
42
43
44
45
46
47
48
#pragma once
// Customize processing architecture.
//#define OPENCL_HASHTABLE // Placing the hashtable in the OpenCL device.
//#define OPENCL_HASHING // Perform hashing in the OpenCL device.
#define OPENCL_KSELECT // Perform k-selection in the OpenCL device.
// Comment out if using OpenCL 1.XX.
//#define OPENCL_2XX
// Select the id of the desired platform and device, only relevant when using OpenCl.
// An overview of the platforms and devices can be queried through the OpenCL framework.
// On Linux, a package "clinfo" is also capable of outputing the platform and device information.
#define CL_PLATFORM_ID 1
#define CL_DEVICE_ID 0
/* Performance tuning params, Do not touch. */
#define wg_segSize 512 // Number of workgroup element, an integral factor of the segmentSize.
#define l_segSize 64 // Number of elements each thread will tally.
//#define SECONDARY_HASHING
#if !defined(OPENCL_HASHTABLE)
#define CPU_TB
#endif
#if !defined(OPENCL_HASHING)
#define CPU_HASHING
#endif
#if !defined(OPENCL_KSELECT)
#define CPU_KSELECT
#endif