Commit fd22fed5 authored by Alvarez, Gonzalo's avatar Alvarez, Gonzalo
Browse files

WftAccelBlocks: disable threading if !blasIsThreadSafe

parent ef2516db
......@@ -3,7 +3,6 @@
#include "Matrix.h"
#include "BLAS.h"
#include "ProgramGlobals.h"
#include <iostream>
#include <iomanip>
......@@ -566,6 +565,7 @@ public:
SizeType threads = std::min(volumeOfNk,
PsimagLite::Concurrency::codeSectionParams.npthreads);
if (!wftOptions_.blasIsThreadSafe) threads = 1;
typedef PsimagLite::Parallelizer<ParallelWftInBlocks> ParallelizerType;
PsimagLite::CodeSectionParams codeSectionParams(threads);
ParallelizerType threadedWft(codeSectionParams);
......
#ifndef WFTSPARSETWOSITE_H
#define WFTSPARSETWOSITE_H
#include "Matrix.h"
#include "BLAS.h"
#include "ProgramGlobals.h"
namespace Dmrg {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment