#include <stdio.h>
#include <stdlib.h>
#include <iostream>
#include <sstream>
#include <fstream>
#include <string>
#include <sys/time.h>
#include <ctime>
#include <map>
#include <vector>
#include <algorithm>
#include <unordered_map>
#include <list>
#include <thrust/system_error.h>
#include <thrust/copy.h>
#include <thrust/device_vector.h>
#include <thrust/host_vector.h>
#include <genie/configure.h>
#include <genie/matching/knn.h>
#include <genie/utility/cuda_macros.h>
#include <genie/utility/init.h>
#include <genie/utility/Logger.h>
#include <genie/utility/Timing.h>
#include "interface.h"
Go to the source code of this file.
|
void | swap (int *position, int offset1, int offset2) |
|
int | partition (int *id_array, int *count_array, const int left, const int right) |
|
void | quicksortIdCount (int *id_array, int *count_array, const int left, const int right) |
|
void | print1DVector (vector< int > &toPrint) |
|
void | merge_knn_results_from_multiload (std::vector< std::vector< int > > &_result, std::vector< std::vector< int > > &_result_count, std::vector< int > &result, std::vector< int > &result_count, int table_num, int topk, int query_num, unsigned int iteration_times) |
|
◆ merge_knn_results_from_multiload()
void merge_knn_results_from_multiload |
( |
std::vector< std::vector< int > > & |
_result, |
|
|
std::vector< std::vector< int > > & |
_result_count, |
|
|
std::vector< int > & |
result, |
|
|
std::vector< int > & |
result_count, |
|
|
int |
table_num, |
|
|
int |
topk, |
|
|
int |
query_num, |
|
|
unsigned int |
iteration_times |
|
) |
| |
◆ partition()
int partition |
( |
int * |
id_array, |
|
|
int * |
count_array, |
|
|
const int |
left, |
|
|
const int |
right |
|
) |
| |
◆ print1DVector()
void print1DVector |
( |
vector< int > & |
toPrint | ) |
|
◆ quicksortIdCount()
void quicksortIdCount |
( |
int * |
id_array, |
|
|
int * |
count_array, |
|
|
const int |
left, |
|
|
const int |
right |
|
) |
| |
◆ swap()
void swap |
( |
int * |
position, |
|
|
int |
offset1, |
|
|
int |
offset2 |
|
) |
| |