From a0dad1ebb1fe8982db8aa2ed1eda6c40bbadfc91 Mon Sep 17 00:00:00 2001 From: Milot Mirdita Date: Tue, 26 Nov 2024 01:18:28 +0900 Subject: [PATCH] Disable GPU SW for unsupported parameters --- src/workflow/Search.cpp | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/workflow/Search.cpp b/src/workflow/Search.cpp index 5c42ef50..c70c5a82 100644 --- a/src/workflow/Search.cpp +++ b/src/workflow/Search.cpp @@ -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; } }