Skip to content

Commit cf2e317

Browse files
omp reductions
1 parent 46f58f3 commit cf2e317

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
@@ -1239,6 +1239,9 @@ namespace grb {
12391239
mask_coors.assign( k_col );
12401240
}
12411241
}
1242+
#ifdef _H_GRB_REFERENCE_OMP_BLAS3
1243+
#pragma omp parallel for reduction(+:nzc)
1244+
#endif
12421245
for( auto k = A_raw.col_start[ i ]; k < A_raw.col_start[ i + 1 ]; ++k ) {
12431246
const auto k_col = A_raw.row_index[ k ];
12441247
if( mask_coors.assigned( k_col ) ) {

0 commit comments

Comments
 (0)