Hybrid Query Processing Engine for Coprocessing in Database Systems
HyPE
benchmark_sorting.cpp File Reference
#include "definitions.hpp"
#include <algorithm>
#include <cstdlib>
#include <iostream>
#include <fstream>
#include <cassert>
#include <vector>
#include <stdint.h>
#include <tbb/parallel_sort.h>
#include <tbb/task_scheduler_init.h>
#include <boost/chrono.hpp>
#include <sys/mman.h>
#include <hype.hpp>
#include <config/configuration.hpp>
#include <query_processing/operator.hpp>
#include <query_processing/processing_device.hpp>
Include dependency graph for benchmark_sorting.cpp:

Go to the source code of this file.

Classes

struct  Random_Number_Generator
class  CPU_Serial_Sort_Operator
class  CPU_Parallel_Sort_Operator
class  GPU_Sort_Operator

Enumerations

enum  SchedulingConfiguration {
  CPU_ONLY, GPU_ONLY,
  HYBRID
}
enum  Architecture {
  Architecture_32Bit, Architecture_64Bit,
  Architecture_32Bit, Architecture_64Bit
}

Functions

uint64_t getTimestamp ()
Architecture getArchitecture ()
void CPU_Sort (VecPtr dataset)
void CPU_Sort_Parallel (VecPtr dataset)
void GPU_Sort (VecPtr dataset)
VecPtr generate_dataset (unsigned int size_in_number_of_elements)
vector< VecPtr > generate_random_datasets (unsigned int max_size_in_number_of_elements, unsigned int number_of_datasets)
int main (int argc, char *argv[])

Enumeration Type Documentation

Enumerator:
Architecture_32Bit 
Architecture_64Bit 
Architecture_32Bit 
Architecture_64Bit 

Definition at line 53 of file benchmark_sorting.cpp.

Enumerator:
CPU_ONLY 
GPU_ONLY 
HYBRID 

Definition at line 31 of file benchmark_sorting.cpp.


Function Documentation

void CPU_Sort ( VecPtr  dataset)

Definition at line 68 of file benchmark_sorting.cpp.

Referenced by CPU_Serial_Sort_Operator::execute().

Here is the caller graph for this function:

void CPU_Sort_Parallel ( VecPtr  dataset)

Definition at line 74 of file benchmark_sorting.cpp.

Referenced by CPU_Parallel_Sort_Operator::execute(), and main().

Here is the caller graph for this function:

VecPtr generate_dataset ( unsigned int  size_in_number_of_elements)

Definition at line 139 of file benchmark_sorting.cpp.

Referenced by generate_random_datasets().

Here is the caller graph for this function:

vector<VecPtr> generate_random_datasets ( unsigned int  max_size_in_number_of_elements,
unsigned int  number_of_datasets 
)

Definition at line 150 of file benchmark_sorting.cpp.

References generate_dataset().

Referenced by main().

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 55 of file benchmark_sorting.cpp.

References Architecture_32Bit, and Architecture_64Bit.

Referenced by main().

Here is the caller graph for this function:

void GPU_Sort ( VecPtr  dataset)

Referenced by GPU_Sort_Operator::execute(), and main().

Here is the caller graph for this function:

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines