Intel® Moderncode for Parallel Architectures
Support for developing parallel programming applications on Intel® Architecture.
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.

Pls Help: VF Multithread

wisperless
Beginner
986 Views

I am a beginner of VF multithread programming. Can anyone give me a sample code how to parallel calculating the summation of 100 numbers, such as one part for the summation from 1 to 50,the other from51 to 100? Thank you :)

Calculating the summation of 100 numbers from 1 to 100

VF sequential code:

integer sum

sum=0

do i=1, 100

sum=sum+i

enddo

0 Kudos
1 Reply
TimP
Honored Contributor III
986 Views
Assuming you are using a Fortran compiler which supports OpenMP, you should find the material at www.openmp.org useful.
0 Kudos
Reply