-
Notifications
You must be signed in to change notification settings - Fork 0
/
build_kNNG.cuh
61 lines (34 loc) · 1.08 KB
/
build_kNNG.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#ifndef kNNGBUILDER_CUH
#define kNNGBUILDER_CUH
#include <assert.h>
#include <unistd.h>
#include <omp.h>
#include <pthread.h>
#include <string.h>
#include <algorithm>
#include <chrono>
#include <iostream>
#include <istream>
#include <vector>
#include "gpuknn/gen_large_knngraph.cuh"
#include "gpuknn/knncuda_tools.cuh"
#include "gpuknn/knnmerge.cuh"
#include "gpuknn/nndescent.cuh"
#include "tools/distfunc.hpp"
#include "tools/filetool.hpp"
#include "tools/knndata_manager.hpp"
#include "tools/timer.hpp"
#include "xmuknn.h"
using namespace std;
using namespace xmuknn;
void ConstructLargeKNNGraph(int shards, string ref, string result);
void PrepareVector(string base,string out);
float* jesus(int *antihubs,int num_antihubs,int *paz);
void write_bool_dict(int* dict,long int numValues,long int k);
int* read_bool_dict();
NNDElement* ReadkNNGgraph();
float* ReadObjects(long int* pf);
void fix_distances(NNDElement *result_graph,long int numValues,long int k);
void write_euclidean_distance_vecs(float* dict,long int numValues);
float* read_euclidean_distance_vecs();
#endif