-
Notifications
You must be signed in to change notification settings - Fork 4
/
KernelInvoker.h
38 lines (31 loc) · 1008 Bytes
/
KernelInvoker.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
#ifndef KERNEL_INVOKER
#define KERNEL_INVOKER 1
#include <iostream>
#include "Definitions.h"
#include "Tools.h"
#include "Logger.h"
#include <fstream>
#include <string>
#include <sstream>
#include <vector>
#include <iomanip>
#include <map>
#include <stdint.h>
#include <assert.h>
#include <CL/cl.h>
void getMaxNumberOfHits(char*& input, int& maxHits);
void printOutSensorHits(int sensorNumber, int* prevs, int* nexts);
void printOutAllSensorHits(int* prevs, int* nexts);
void printInfo(int numberOfSensors, int numberOfHits);
void printTrack(Track* tracks, const int trackNumber, const std::map<int, int>& zhit_to_module, std::ofstream& outstream);
int findClosestModule(const int z, const std::map<int, int>& zhit_to_module);
int invokeParallelSearch(
const int startingEvent,
const int eventsToProcess,
const std::vector<const std::vector<uint8_t>* > & input,
std::vector<std::vector<uint8_t> > & output);
struct EventBeginning {
int numberOfSensors;
int numberOfHits;
};
#endif