Nios® II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
Announcements
Intel Support hours are Monday-Fridays, 8am-5pm PST, except Holidays. Thanks to our community members who provide support during our down time or before we get to your questions. We appreciate you!

Need Forum Guidance? Click here
Search our FPGA Knowledge Articles here.

De1Soc Mutlithreading

Altera_Forum
Honored Contributor II
805 Views

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.  

 

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 = temp; } } free(temp); } 

 

I tried compile with the -fopenmp flag and ran on de1soc. Results were the same.
0 Kudos
3 Replies
Altera_Forum
Honored Contributor II
103 Views

Cortex-A9 is an ARMv7 architecture. According to the ARM web site, architectures earlier than ARMv8 are not 

supported by the ARM compiler for HPC: 

 

https://developer.arm.com/products/software-development-tools/hpc/documentation/supported-platforms
Altera_Forum
Honored Contributor II
103 Views

Thanks Austin, so i assume there is no other way to mutlithread except pthreading?

Altera_Forum
Honored Contributor II
103 Views

I don't know, I have not investigated using multithreading on the Terasic platforms.

Reply