Une MAJ de sécurité est nécessaire sur notre version actuelle. Elle sera effectuée lundi 02/08 entre 12h30 et 13h. L'interruption de service devrait durer quelques minutes (probablement moins de 5 minutes).

Commit f735f541 authored by BRAMAS Berenger's avatar BRAMAS Berenger
Browse files

debug quick sort deep

parent 9c394b9a
......@@ -131,8 +131,8 @@ public:
static void QsOmp(SortType elements[], const int nbElements){
const int nbTasksRequiere = (omp_get_max_threads() * 5);
int deep = 1;
while( deep < nbTasksRequiere ) deep <<= 1;
int deep = 0;
while( (1 << deep) < nbTasksRequiere ) deep += 1;
std::vector<TaskInterval> tasks;
tasks.push_back(TaskInterval(0, nbElements-1, deep));
......@@ -193,8 +193,8 @@ public:
/** The openmp quick sort */
static void QsOmp(SortType array[], const IndexType size){
const int nbTasksRequiere = (omp_get_max_threads() * 5);
int deep = 1;
while( deep < nbTasksRequiere ) deep <<= 1;
int deep = 0;
while( (1 << deep) < nbTasksRequiere ) deep += 1;
#pragma omp parallel
{
......
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