Hi,
My question is, does De1soc capable of mutlithreading? I know it has Arm Cortex9 with 2 core. Does it support OpenMP?
The reason is, i have this task and it is taking longer than i expected.
I tried compile with the -fopenmp flag and ran on de1soc. Results were the same.
My question is, does De1soc capable of mutlithreading? I know it has Arm Cortex9 with 2 core. Does it support OpenMP?
The reason is, i have this task and it is taking longer than i expected.
Code:
void transpose(int h, int w, float *x){ int i, j;
float *temp = (float *) calloc(h*w, sizeof(float));
(float *)memcpy(temp,x,h*w*sizeof(float));
#pragma omp parallel for
for ( i = 0; i < h ; ++i){
for( j = 0 ; j < w ; ++j){
x[j*h + i] = temp[i*w + j];
}
}
free(temp);
}