Commit 19b6c4bc authored by mal539's avatar mal539
Browse files

Commit with Version_1: chunk-task-grain-size-trade-off; one big chunk per thread.

parent acffd6bd
......@@ -2039,7 +2039,7 @@ void LocalMultiTraceOperator<LO, SC>::apply_no_sync(
SC v;
// define chunk-size
CHUNKSIZE = (LO) (n / nts) / 1;
CHUNKSIZE = 1;
//CHUNKSIZE = 1;
if( transA ){
#pragma omp for schedule( dynamic, CHUNKSIZE )
......@@ -2069,7 +2069,7 @@ void LocalMultiTraceOperator<LO, SC>::apply_no_sync(
SC v;
if( transA ){
#pragma omp for schedule( dynamic, 1 )
#pragma omp for schedule( dynamic, CHUNKSIZE )
for( LO i = 0; i < n; ++i ){
ri = this->global_row_indices_ID_GLOBAL[ i ];
ci = this->global_col_indices_ID_GLOBAL[ i ];
......@@ -2079,7 +2079,7 @@ void LocalMultiTraceOperator<LO, SC>::apply_no_sync(
}
}
else{
#pragma omp for schedule( dynamic, 1 )
#pragma omp for schedule( dynamic, CHUNKSIZE )
for( LO i = 0; i < n; ++i ){
ri = this->global_row_indices_ID_GLOBAL[ i ];
ci = this->global_col_indices_ID_GLOBAL[ i ];
......
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