Skip to content
Snippets Groups Projects
Commit 19c9df5d authored by Alvarez, Gonzalo's avatar Alvarez, Gonzalo
Browse files

changes due to Parallelizer and [No]PthreadNg

parent 7c5a194c
No related branches found
No related tags found
No related merge requests found
......@@ -230,9 +230,12 @@ public:
// Calculate off-diagonal elements AND store matrix
typedef MatrixVectorHelper HelperType;
typedef PsimagLite::Parallelizer<HelperType> ParallelizerType;
ParallelizerType threadObject(PsimagLite::Concurrency::npthreads,
PsimagLite::MPI::COMM_WORLD);
HelperType helper(PsimagLite::Concurrency::npthreads,x,y,basis,*this);
ParallelizerType threadObject(PsimagLite::Concurrency::codeSectionParams);
HelperType helper(PsimagLite::Concurrency::codeSectionParams.npthreads,
x,
y,
basis,
*this);
std::cout<<"Using "<<threadObject.name();
std::cout<<" with "<<threadObject.threads()<<" threads.\n";
......
......@@ -203,7 +203,8 @@ int main(int argc,char **argv)
io.readline(npthreads,"Threads=");
} catch (std::exception&) {}
ConcurrencyType::setOptions(npthreads, setAffinities);
PsimagLite::CodeSectionParams codeSectionParams(npthreads, setAffinities);
ConcurrencyType::setOptions(codeSectionParams);
typedef std::complex<RealType> ComplexType;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment