JOMP page [As liberated from http://www.epcc.ed.ac.uk/research/jomp/download.html]

To install JOMP, copy /appl/JOMP/jomp1.0b.jar to a suitable directory and add the file jomp1.0b.jar to your CLASSPATH.

Compiling using JOMP

Use the following command to compile a file using JOMP:

java jomp.compiler.Jomp MyFile

where MyFile.jomp is your input file. Note, that the input file MUST have the .jomp extension, but that you do not enter this extension on the command line. The output is written to MyFile.java. You can then compile this file using your Java compiler, e.g.:

javac MyFile.java

Note that the JOMP compiler requires Java 1.2 Platform support.

Executing JOMP programs in parallel

To execute an application in file MyFile.class in parallel, use the following command:

java -Djomp.threads=n MyFile

where n is the number of threads you want to use. If you don't specify the jomp.threads system property, one thread will be used to execute all the parallel regions. More details on the JOMP system properties can be found in the JOMP API. Note that some older JDKs may require the use of the -native flag, or similar, to enable the use of kernel level threads.

Return to Parallel Programming Frame