@@ -349,6 +349,10 @@ int search(int argc, const char **argv, const Command& command) {
349
349
// cmd.addVariable("ALIGNMENT_DB_EXT", Parameters::isEqualDbtype(targetDbType, Parameters::DBTYPE_PROFILE_STATE_SEQ) ? ".255" : "");
350
350
par.filenames [1 ] = targetDB;
351
351
if (par.exhaustiveSearch == true ) {
352
+ if (par.gpu != 0 ) {
353
+ Debug (Debug::ERROR) << " No GPU support in exhaustive search\n " ;
354
+ EXIT (EXIT_FAILURE);
355
+ }
352
356
// By default (0), diskSpaceLimit (in bytes) will be set in the workflow to use as much as possible
353
357
cmd.addVariable (" AVAIL_DISK" , SSTR (static_cast <size_t >(par.diskSpaceLimit )).c_str ());
354
358
@@ -389,6 +393,10 @@ int search(int argc, const char **argv, const Command& command) {
389
393
FileUtil::writeFile (program, searchslicedtargetprofile_sh, searchslicedtargetprofile_sh_len);
390
394
} else if (((searchMode & Parameters::SEARCH_MODE_FLAG_TARGET_PROFILE) && (searchMode & Parameters::SEARCH_MODE_FLAG_QUERY_AMINOACID))
391
395
&& par.PARAM_NUM_ITERATIONS .wasSet ){
396
+ if (par.gpu != 0 ) {
397
+ Debug (Debug::ERROR) << " No GPU support in profile-profile search\n " ;
398
+ EXIT (EXIT_FAILURE);
399
+ }
392
400
par.exhaustiveSearch = true ;
393
401
par.addBacktrace = true ;
394
402
int originalNumIterations = par.numIterations ;
@@ -437,6 +445,10 @@ int search(int argc, const char **argv, const Command& command) {
437
445
FileUtil::writeFile (tmpDir + " /iterativepp.sh" , iterativepp_sh, iterativepp_sh_len);
438
446
program = std::string (tmpDir + " /iterativepp.sh" );
439
447
} else if (searchMode & Parameters::SEARCH_MODE_FLAG_TARGET_PROFILE) {
448
+ if (par.gpu != 0 ) {
449
+ Debug (Debug::ERROR) << " No GPU support in target-side k-mer search\n " ;
450
+ EXIT (EXIT_FAILURE);
451
+ }
440
452
cmd.addVariable (" PREFILTER_PAR" , par.createParameterString (par.prefilter ).c_str ());
441
453
// we need to align all hits in case of target Profile hits
442
454
size_t maxResListLen = par.maxResListLen ;
@@ -500,8 +512,12 @@ int search(int argc, const char **argv, const Command& command) {
500
512
program = std::string (tmpDir + " /blastpgp.sh" );
501
513
} else {
502
514
if (par.sensSteps > 1 ) {
515
+ if (par.gpu != 0 ) {
516
+ Debug (Debug::ERROR) << " No GPU support in increasing sensitivity search\n " ;
517
+ EXIT (EXIT_FAILURE);
518
+ }
503
519
if (par.startSens > par.sensitivity ) {
504
- Debug (Debug::ERROR) << " --start-sens should not be greater -s. \n " ;
520
+ Debug (Debug::ERROR) << " --start-sens can not be greater than -s \n " ;
505
521
EXIT (EXIT_FAILURE);
506
522
}
507
523
cmd.addVariable (" SENSE_0" , SSTR (par.startSens ).c_str ());
@@ -561,6 +577,10 @@ int search(int argc, const char **argv, const Command& command) {
561
577
program = std::string (tmpDir + " /translated_search.sh" );
562
578
}else if (searchMode & Parameters::SEARCH_MODE_FLAG_QUERY_NUCLEOTIDE &&
563
579
searchMode & Parameters::SEARCH_MODE_FLAG_TARGET_NUCLEOTIDE){
580
+ if (par.gpu != 0 ) {
581
+ Debug (Debug::ERROR) << " No GPU support in nucleotide search\n " ;
582
+ EXIT (EXIT_FAILURE);
583
+ }
564
584
FileUtil::writeFile (tmpDir + " /blastn.sh" , blastn_sh, blastn_sh_len);
565
585
// 0: reverse, 1: forward, 2: both
566
586
switch (par.strand ){
0 commit comments