obi clean: fixed an openmp bug where the share size would be 0 blocking
the program
This commit is contained in:
@ -18,6 +18,7 @@
|
||||
#include <stdbool.h>
|
||||
#include <search.h>
|
||||
#include <sys/time.h>
|
||||
#include <math.h>
|
||||
|
||||
#include "obi_clean.h"
|
||||
#include "obidms.h"
|
||||
@ -426,7 +427,7 @@ int obi_clean(const char* dms_name,
|
||||
byte_t ali_result;
|
||||
|
||||
// Parallelize the loop on samples to avoid interdependency issues inside one sample
|
||||
#pragma omp for schedule(dynamic, (sample_count/thread_count))
|
||||
#pragma omp for schedule(dynamic, sample_count/thread_count + (sample_count % thread_count != 0)) // Avoid 0 which blocks the program
|
||||
for (sample=0; sample < sample_count; sample++)
|
||||
{
|
||||
sample_count_array = complete_sample_count_array+(sample*seq_count);
|
||||
|
Reference in New Issue
Block a user