A few words on using OpenMP on the Sun E10000
- ImportantYou should submit your OpenMP jobs
using a script (as described on the 7th page of the handout)
rather than the interactive method described on page 5.
- I'm told you can compile C programs using the compiler
/usr/local/apps/KAP/guide39/bin/guidec
- Here is a manual for
OpenMP for Fortran.
- The directory /usr/local/apps/KAP/guide40/OpenMP_examples on Gaos
has a bunch of examples of OpenMP usage. Note that examples are for
subroutines - to try out an example, you'll need a main program,
which in Fortran looks something like:
> program test
> integer i,j,n
> real a(50,50), b(50,50)
> C Your program should use "double precision" in place of "real"
> n=50
> do i = 1, n
> do j = 1, n
> a(i,j) = i+j
> enddo
> enddo
>
> call do_1(a,b,n)
> end
> C Now comes the code from the example
> subroutine do_1(a,b,n)
> etc etc