bufferkdtree (C sources)
C source code for the Python bufferkdtree implementation
|
#include "../../../include/timing.h"
#include "../../../include/float.h"
#include "../../../include/opencl.h"
#include <string.h>
Go to the source code of this file.
Classes | |
struct | tree_node |
struct | circular_buffer |
struct | tree_parameters |
struct | tree_record |
Macros | |
#define | STR_HELPER(x) #x |
#define | STR(x) STR_HELPER(x) |
#define | SPLITTING_TYPE_CYCLIC 0 |
#define | SPLITTING_TYPE_LONGEST_BOX 1 |
#define | MEM_GB 1.073741824E9 |
#define | DO_ALL_BRUTE_NO 0 |
#define | DO_ALL_BRUTE_YES 1 |
#define | TRAIN_CHUNK_0 0 |
#define | TRAIN_CHUNK_1 1 |
#define | MAX_CHUNK_BRUTE_KERNEL 1048576 |
#define | WORKGROUP_SIZE_BRUTE 256 |
#define | WORKGROUP_SIZE_LEAVES 32 |
#define | WORKGROUP_SIZE_UPDATE 16 |
#define | WORKGROUP_SIZE_COPY_INIT 32 |
#define | WORKGROUP_SIZE_COMBINE 64 |
#define | WORKGROUP_SIZE_TEST_SUBSET 32 |
#define | WORKGROUP_SIZE_COPY_DISTS_INDICES 32 |
#define | LEAF_WIDTH 2 |
#define | INT_TYPE int |
#define | UINT_TYPE unsigned int |
#define | USE_GPU 0 |
#define | MIN(a, b) (((a)<(b))?(a):(b)) |
#define | MAX(a, b) (((a)>(b))?(a):(b)) |
Typedefs | |
typedef struct tree_node | TREE_NODE |
typedef struct tree_parameters | TREE_PARAMETERS |
typedef struct tree_record | TREE_RECORD |
#define DO_ALL_BRUTE_NO 0 |
#define DO_ALL_BRUTE_YES 1 |
#define INT_TYPE int |
#define LEAF_WIDTH 2 |
#define MAX | ( | a, | |
b | |||
) | (((a)>(b))?(a):(b)) |
#define MAX_CHUNK_BRUTE_KERNEL 1048576 |
#define MEM_GB 1.073741824E9 |
#define MIN | ( | a, | |
b | |||
) | (((a)<(b))?(a):(b)) |
#define SPLITTING_TYPE_CYCLIC 0 |
#define SPLITTING_TYPE_LONGEST_BOX 1 |
#define STR | ( | x | ) | STR_HELPER(x) |
#define STR_HELPER | ( | x | ) | #x |
#define TRAIN_CHUNK_0 0 |
#define TRAIN_CHUNK_1 1 |
#define UINT_TYPE unsigned int |
#define USE_GPU 0 |
#define WORKGROUP_SIZE_BRUTE 256 |
#define WORKGROUP_SIZE_COMBINE 64 |
#define WORKGROUP_SIZE_COPY_DISTS_INDICES 32 |
#define WORKGROUP_SIZE_COPY_INIT 32 |
#define WORKGROUP_SIZE_LEAVES 32 |
#define WORKGROUP_SIZE_TEST_SUBSET 32 |
#define WORKGROUP_SIZE_UPDATE 16 |
typedef struct tree_parameters TREE_PARAMETERS |
typedef struct tree_record TREE_RECORD |