Hi guys,
First ,I am a newbie to learn how to use openmp for my HPC.
then, I want to ask some questions about the OPENMP:
1) in the case I use 'ifort -openmp -o aim.out script.f90', I must 'use omp_lib' in the script? and the omp_lib is already embeded into ifort compiler? that means, I won't install any omp_lib in my linux platform?
2) I have a program which run by serial means, the construct like the follows:
open(10, file=somefile); open(20, file=anotherfile)
do i = 1, numline !numline is the total lines of the somefile
read(10, format1, iostat=stat) x,y,z
if(stat/=0) exit
call subroutine1(x,y,z,val)
write(20, format2) val
enddo
close(10)
close(20)
like this construct , how can I transfer the loop into parallel programming ?
best wishes to you all
thanks
alex