Skip to content

Commit

Permalink
Disable GPU SW for unsupported parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
milot-mirdita committed Nov 25, 2024
1 parent d595aa4 commit a0dad1e
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions src/workflow/Search.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -320,10 +320,16 @@ int search(int argc, const char **argv, const Command& command) {
}

// GPU can only use the ungapped prefilter
if(par.gpu == 1 && par.PARAM_PREF_MODE.wasSet == false){
if( par.numIterations > 1){
if (par.gpu == 1 && par.PARAM_PREF_MODE.wasSet == false) {
if (par.numIterations > 1
|| par.alignmentMode != Parameters::ALIGNMENT_MODE_SCORE_ONLY
|| par.altAlignment > 0
|| par.scoreBias != 0.0
|| par.realign == true
|| par.addBacktrace == true
) {
par.prefMode = Parameters::PREF_MODE_UNGAPPED;
}else {
} else {
par.prefMode = Parameters::PREF_MODE_UNGAPPED_AND_GAPPED;
}
}
Expand Down

0 comments on commit a0dad1e

Please sign in to comment.