Difference between revisions of "NAGWareCompiler"

From UMIACS
Jump to navigation Jump to search
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
  
The NAGWare Fortran compiler is available under <tt>/opt/common/NAGWare_f95</tt>* on our supported RHEL6/RHEL7/Ubuntu hosts, and <tt>/opt/NAGWare_f95</tt>* on our supported RHEL5 hosts. You can either load the binaries into your environment with the [[Modules | GNU Module]] we created, reference the paths directly, else add them to your [[PATH | PATH]].
+
The NAGWare Fortran compiler is available under <tt>/opt/common/NAGWare_f95</tt>* on our supported RHEL6/RHEL7/Ubuntu hosts, and <tt>/opt/NAGWare_f95</tt>* on our supported RHEL5 hosts. You can either load the binaries into your environment with the [[Modules | GNU Modules]] we created, reference the paths directly, else add them to your [[PATH | PATH]].
  
 
==Example use of the compiler==
 
==Example use of the compiler==

Revision as of 14:31, 20 June 2014


The NAGWare Fortran compiler is available under /opt/common/NAGWare_f95* on our supported RHEL6/RHEL7/Ubuntu hosts, and /opt/NAGWare_f95* on our supported RHEL5 hosts. You can either load the binaries into your environment with the GNU Modules we created, reference the paths directly, else add them to your PATH.

Example use of the compiler

Here is a basic compilation an execution of Hello World using the NAGWare fortran compiler. This example will use the GNU Module we setup to quickly load the binaries into your environment.

First, in a working directory, create a file hello.f95 with the following contents:

PRINT *, "Hello World!" 
END

Then, load the NAGWare modules into your environment and verify that the binaries are in your path:

[jlent@rock ~]$ module load nagware
[jlent@rock ~]$ which f95
/opt/common/NAGWare_f95-5.1/bin/f95