Community
cancel
Showing results for 
Search instead for 
Did you mean: 
wisperless
Beginner
62 Views

Pls Help: VF Multithread

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
Black Belt
62 Views

Assuming you are using a Fortran compiler which supports OpenMP, you should find the material at www.openmp.org useful.
Reply