Closed magicse closed 2 years ago
If make this changes in source above, than it work correct with "OpenMP support" without fault error.
#pragma omp taskq
{
#pragma omp task shared(faceobjects)
{
if (left < j) qsort_descent_inplace(faceobjects, left, j);
}
#pragma omp task shared(faceobjects)
{
if (i < right) qsort_descent_inplace(faceobjects, i, right);
}
}
great!
please close.
Hi thank You for Your work. Windows 7 Core 2 Quard MinGW64 GCC 12.1.0
I have some issue with OpenMP support. When I compile the following example it works fine:
But when I try run compiled next example (Recursive QuickSort with OpenMP ). I get segmentation fault error. I tried different examples of QuickSort with OpenMP and always I get segmentation fault error.
Also when I compile the NCNN library with OpenMP support I also get segmentation fault error when I use this library, and without OpenMP support it all work Ok.