I'm beginning in openMP and I try to use openMP in my code source. I have four functions and I would like to give for each thread one function. Here is my code:
int a,b,c,d;
omp_set_num_threads(4);
#pragma omp parallel
{
a=SetHist1(int (Convert_Mask0(mask)),1);
b=SetHist2(int (Convert_Mask45(mask)),1);
c=SetHist3(int (Convert_Mask90(mask)),1);
d=SetHist4(int (Convert_Mask135(mask)),1);
}
but this does not work for me.