use #pragma parallel for properly (#68)

This commit is contained in:
Tracy Sharpe 2018-11-30 14:11:49 -08:00 committed by GitHub
parent c55663860e
commit 21044846ee
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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];