Commit f01521a6 authored by BRAMAS Berenger's avatar BRAMAS Berenger

Add a name to critical section (even if they should not be called at the same...

Add a name to critical section (even if they should not be called at the same time but to ensure that they cannot interfere with some others)
parent fde2be14
......@@ -66,7 +66,7 @@ public:
this->kernels = new KernelClass*[MaxThreads];
#pragma omp parallel for schedule(static)
for(int idxThread = 0 ; idxThread < MaxThreads ; ++idxThread){
#pragma omp critical
#pragma omp critical (InitFFmmAlgorithmSectionTask)
{
this->kernels[idxThread] = new KernelClass(*inKernels);
}
......
......@@ -66,7 +66,7 @@ public:
this->kernels = new KernelClass*[MaxThreads];
#pragma omp parallel for schedule(static)
for(int idxThread = 0 ; idxThread < MaxThreads ; ++idxThread){
#pragma omp critical
#pragma omp critical (InitFFmmAlgorithmTask)
{
this->kernels[idxThread] = new KernelClass(*inKernels);
}
......
......@@ -74,7 +74,7 @@ public:
this->kernels = new KernelClass*[MaxThreads];
#pragma omp parallel for schedule(static)
for(int idxThread = 0 ; idxThread < MaxThreads ; ++idxThread){
#pragma omp critical
#pragma omp critical (InitFFmmAlgorithmThread)
{
this->kernels[idxThread] = new KernelClass(*inKernels);
}
......
......@@ -143,7 +143,7 @@ public:
this->kernels = new KernelClass*[MaxThreads];
#pragma omp parallel for schedule(static)
for(int idxThread = 0 ; idxThread < MaxThreads ; ++idxThread){
#pragma omp critical
#pragma omp critical (InitFFmmAlgorithmThreadProc)
{
this->kernels[idxThread] = new KernelClass(*inKernels);
}
......
......@@ -115,7 +115,7 @@ public:
this->kernels = new KernelClass*[MaxThreads];
#pragma omp parallel for schedule(static)
for(int idxThread = 0 ; idxThread < MaxThreads ; ++idxThread){
#pragma omp critical
#pragma omp critical (InitFFmmAlgorithmThreadProcPeriodic)
{
this->kernels[idxThread] = new KernelClass(*inKernels);
}
......
......@@ -70,7 +70,7 @@ public:
this->kernels = new KernelClass*[MaxThreads];
#pragma omp parallel for schedule(static)
for(int idxThread = 0 ; idxThread < MaxThreads ; ++idxThread){
#pragma omp critical
#pragma omp critical (InitFFmmAlgorithmThreadTsm)
{
this->kernels[idxThread] = new KernelClass(*inKernels);
}
......
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