Skip to content

Commit 3e33029

Browse files
aleksamilisavljevicanyzelman
authored andcommitted
omp reductions
1 parent cc73689 commit 3e33029

File tree

1 file changed

+3
-0
lines changed
  • include/graphblas/reference

1 file changed

+3
-0
lines changed

include/graphblas/reference/io.hpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2111,6 +2111,9 @@ namespace grb {
21112111
mask_coors.assign( k_col );
21122112
}
21132113
}
2114+
#ifdef _H_GRB_REFERENCE_OMP_BLAS3
2115+
#pragma omp parallel for reduction(+:nzc)
2116+
#endif
21142117
for( auto k = A_raw.col_start[ i ]; k < A_raw.col_start[ i + 1 ]; ++k ) {
21152118
const auto k_col = A_raw.row_index[ k ];
21162119
if( mask_coors.assigned( k_col ) ) {

0 commit comments

Comments
 (0)