12.07.2015 Views

LF95 Linux User's Guide - Lahey Computer Systems

LF95 Linux User's Guide - Lahey Computer Systems

LF95 Linux User's Guide - Lahey Computer Systems

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Chapter 5 Multi-Processing (PRO version only)The letter P shown on the left side of the source program marks the parallelized statements.!ocl independent(fun)p do i = 1,1000p j = ip a(i) = fun(j)p end do..endfunction fun(j)fun = sqrt(real(j**2+3*j+6))endNote:If a procedure that cannot be sliced is described in an INDEPENDENT specifier by mistake,LF64 may perform an incorrect loop slicing and program results may be incorrect.Wild Card SpecificationIn the operand of the following optimization control specifiers, a wild card may be specifiedfor a variable name or a procedure name:• DISJOINT• TEMP• INDEPENDENTThe wild card specification is a combination of the special wild card characters and alphanumericcharacters. The effect is the same as specifying all of the variable names and procedurenames that agree with the wild card expression. There are two wild card characters, "*" and"?", and they match the following character strings.• "*" matches any character string of one or more alphanumeric characters.• "?" matches any single alphanumeric character.A wild card specification cannot contain more than one wild card character.!ocl temp(w*)In this example, w* matches any variable beginning with w and having a length of two ormore characters. For example, the variable names work1, w2, and work3 are included in thisspecification.!ocl disjoint(a?)In this example, a? matches any two-character array name which has a for the first character.For example, the array names a1, a2, and aa are included in this specification. The arrayname abc is not included in this specification because its length is not two.!ocl independent(sub?)102 <strong>Lahey</strong>/Fujitsu <strong>Linux</strong>64 Fortran User’s <strong>Guide</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!