From 3aadadbb3da5831c619a43d42ddb2da5b615022b Mon Sep 17 00:00:00 2001 From: pschloss Date: Tue, 15 Feb 2011 19:48:17 +0000 Subject: [PATCH] fixed an mpi bug in shhh.seqs --- Mothur.xcodeproj/project.pbxproj | 4 ++-- makefile | 2 +- shhhercommand.cpp | 23 ++++++++++------------- 3 files changed, 13 insertions(+), 16 deletions(-) diff --git a/Mothur.xcodeproj/project.pbxproj b/Mothur.xcodeproj/project.pbxproj index e479725..902e927 100644 --- a/Mothur.xcodeproj/project.pbxproj +++ b/Mothur.xcodeproj/project.pbxproj @@ -1625,7 +1625,7 @@ attributes = { ORGANIZATIONNAME = "Schloss Lab"; }; - buildConfigurationList = 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "mothur" */; + buildConfigurationList = 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "Mothur" */; compatibilityVersion = "Xcode 3.1"; developmentRegion = English; hasScannedForEncodings = 1; @@ -2048,7 +2048,7 @@ defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; - 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "mothur" */ = { + 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "Mothur" */ = { isa = XCConfigurationList; buildConfigurations = ( 1DEB928A08733DD80010E9CD /* Debug */, diff --git a/makefile b/makefile index 7cc71f0..6ac7e31 100644 --- a/makefile +++ b/makefile @@ -9,7 +9,7 @@ # Macros # -USEMPI ?= no +USEMPI ?= yes 64BIT_VERSION ?= yes USEREADLINE ?= yes CYGWIN_BUILD ?= no diff --git a/shhhercommand.cpp b/shhhercommand.cpp index 6833f5d..066a9c5 100644 --- a/shhhercommand.cpp +++ b/shhhercommand.cpp @@ -250,9 +250,6 @@ int ShhherCommand::execute(){ int tag = 1976; MPI_Status status; - double begClock = clock(); - unsigned long int begTime = time(NULL); - if(pid == 0){ for(int i=1;imothurOut("\n>>>>>\tProcessing " + flowFileName + " (file " + toString(i+1) + " of " + toString(numFiles) + ")\t<<<<<\n"); m->mothurOut("Reading flowgrams...\n"); @@ -370,7 +368,7 @@ int ShhherCommand::execute(){ MPI_Send(&nSeqsPerOTU[0], numOTUs, MPI_INT, i, tag, MPI_COMM_WORLD); MPI_Send(&cumNumSeqs[0], numOTUs, MPI_INT, i, tag, MPI_COMM_WORLD); } - + calcCentroidsDriver(0, numOTUsOnCPU); for(int i=1;imothurOut("\nDenoising flowgrams...\n"); m->mothurOut("iter\tmaxDelta\tnLL\t\tcycletime\n"); -- 2.39.2