mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-05-14 20:48:00 +00:00
use #pragma parallel for properly (#68)
This commit is contained in:
parent
c55663860e
commit
21044846ee
1 changed files with 2 additions and 3 deletions
|
|
@ -1288,9 +1288,8 @@ Return Value:
|
|||
|
||||
#if defined(MLAS_USE_OPENMP)
|
||||
|
||||
#pragma omp parallel num_threads(Index)
|
||||
{
|
||||
int tid = omp_get_thread_num();
|
||||
#pragma omp parallel for
|
||||
for (int32_t tid = 0; tid < int32_t(Index); tid++) {
|
||||
|
||||
MLAS_SGEMM_WORK_BLOCK::SEGMENT* Segment = &WorkBlock.Segments[tid];
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue