Skip to content

Commit

Permalink
unnecessary seed_pos variable removed
Browse files Browse the repository at this point in the history
  • Loading branch information
gsneha26 committed Jul 12, 2020
1 parent e994a21 commit 3e14c3b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/seed_filter.cu
Original file line number Diff line number Diff line change
Expand Up @@ -926,7 +926,7 @@ void InclusivePrefixScan (uint32_t* data, uint32_t len) {
}
}

void SendSeedPosTable (uint32_t* index_table, uint32_t index_table_size, uint32_t* pos_table, uint32_t num_index, uint32_t max_pos_index){
void SendSeedPosTable (uint32_t* index_table, uint32_t index_table_size, uint32_t* pos_table, uint32_t num_index){

for(int g = 0; g < NUM_DEVICES; g++){

Expand Down
2 changes: 1 addition & 1 deletion src/seed_filter.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ struct segment {

typedef int(*InitializeProcessor_ptr)(int num_gpu, bool transition, uint32_t WGA_CHUNK, uint32_t input_seed_size, int* sub_mat, int input_xdrop, int input_hspthresh, bool input_noentropy);
typedef void(*InclusivePrefixScan_ptr)(uint32_t* data, uint32_t len);
typedef void(*SendSeedPosTable_ptr)(uint32_t* index_table, uint32_t index_table_size, uint32_t* pos_table, uint32_t ref_size, uint32_t max_pos_index);
typedef void(*SendSeedPosTable_ptr)(uint32_t* index_table, uint32_t index_table_size, uint32_t* pos_table, uint32_t ref_size);
typedef void(*SendRefWriteRequest_ptr)(size_t addr, uint32_t len);
typedef void(*SendQueryWriteRequest_ptr)(size_t addr, uint32_t len, uint32_t buffer);
typedef std::vector<segment> (*SeedAndFilter_ptr)(std::vector<uint64_t> seed_offset_vector, bool rev, uint32_t buffer);
Expand Down
3 changes: 1 addition & 2 deletions src/seed_pos_table.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ int SeedPosTable::GetShapeSize() {

SeedPosTable::SeedPosTable(char* ref_str, size_t start_addr, uint32_t ref_length, std::string shape, uint32_t step) {

int max_pos = 0;
shape_size_ = shape.length();
int kmer_size = 0;
for (int i = 0; i < shape_size_; i++) {
Expand Down Expand Up @@ -76,7 +75,7 @@ SeedPosTable::SeedPosTable(char* ref_str, size_t start_addr, uint32_t ref_length
}
});

g_SendSeedPosTable(index_table_+1, index_table_size_-1, pos_table_, num_index, max_pos);
g_SendSeedPosTable(index_table_+1, index_table_size_-1, pos_table_, num_index);

free(tmp_index_arr);
free(tmp_off_arr);
Expand Down

0 comments on commit 3e14c3b

Please sign in to comment.