Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Laurell, Pontus Bengt Johan
dmrgpp
Commits
92150a92
Commit
92150a92
authored
Aug 21, 2019
by
Alvarez, Gonzalo
Browse files
Changes due to changes in LoadBalancerDefault
parent
b52fd197
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/Engine/MatrixVectorKron/KronMatrix.h
View file @
92150a92
...
...
@@ -85,6 +85,7 @@ DISCLOSED WOULD NOT INFRINGE PRIVATELY OWNED RIGHTS.
#include "Parallelizer.h"
#include "PsimagLite.h"
#include "ProgressIndicator.h"
#include "LoadBalancerWeights.h"
#ifdef PLUGIN_SC
#include "BatchedGemmPluginSc.h"
#else
...
...
@@ -139,17 +140,18 @@ public:
}
KronConnectionsType
kc
(
initKron_
);
typedef
PsimagLite
::
Parallelizer
<
KronConnectionsType
>
ParallelizerType
;
SizeType
threads
=
(
initKron_
.
blasIsThreadSafe
())
?
PsimagLite
::
Concurrency
::
codeSectionParams
.
npthreads
:
1
;
PsimagLite
::
CodeSectionParams
codeSectionParams
(
threads
);
ParallelizerType
parallelConnections
(
codeSectionParams
);
if
(
initKron_
.
loadBalance
())
if
(
initKron_
.
loadBalance
())
{
PsimagLite
::
Parallelizer
<
KronConnectionsType
,
PsimagLite
::
LoadBalancerWeights
>
parallelConnections
(
codeSectionParams
);
parallelConnections
.
loopCreate
(
kc
,
initKron_
.
weightsOfPatchesNew
());
else
}
else
{
PsimagLite
::
Parallelizer
<
KronConnectionsType
>
parallelConnections
(
codeSectionParams
);
parallelConnections
.
loopCreate
(
kc
);
}
kc
.
sync
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment