Skip to content

Commit f2da440

Browse files
committed
Revert "Remove OpenMP pragmas from TMatrix multiplication function"
This reverts commit 10b6c35.
1 parent e95e721 commit f2da440

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

math/matrix/src/TMatrixT.cxx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3096,6 +3096,9 @@ void TMatrixTAutoloadOps::AMultB(const Element *const ap, Int_t na, Int_t ncolsa
30963096
return;
30973097
}
30983098
const Int_t BLOCK = (M >= 192 && N >= 192 && P >= 192) ? 48 : 32;
3099+
#ifdef _OPENMP
3100+
#pragma omp parallel for collapse(2) if (M * P > 10000)
3101+
#endif
30993102
for (Int_t i0 = 0; i0 < M; i0 += BLOCK) {
31003103
for (Int_t j0 = 0; j0 < P; j0 += BLOCK) {
31013104
const Int_t i1 = (i0 + BLOCK < M) ? i0 + BLOCK : M;

0 commit comments

Comments
 (0)