-
Notifications
You must be signed in to change notification settings - Fork 0
/
driver.hpp
41 lines (29 loc) · 907 Bytes
/
driver.hpp
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
#ifndef DRIVER_HPP
#define DRIVER_HPP
#include "kernel.hpp"
#include <chrono>
#include <cmath>
#include <string>
#include <vector>
#include <omp.h>
#include "alignments.hpp"
#define NSTREAMS 2
#define NOW std::chrono::high_resolution_clock::now()
namespace gpu_bsw_driver{
// for storing the alignment results
struct alignment_results{
short* ref_begin;
short* query_begin;
short* ref_end;
short* query_end;
short* top_scores;
char* CIGAR;
};
size_t
get_tot_gpu_mem(int id);
void
kernel_driver_dna(std::vector<std::string> reads, std::vector<std::string> contigs, gpu_bsw_driver::alignment_results *alignments, int maxCIGAR, short scores[4], float factor = 1.0);
void
kernel_driver_aa(std::vector<std::string> reads, std::vector<std::string> contigs, alignment_results *alignments, int maxCIGAR, short scoring_matrix[], short openGap, short extendGap, float factor = 1.0);
}
#endif