NAGWareCompiler: Difference between revisions

From UMIACS
Jump to navigation Jump to search
No edit summary
No edit summary
Line 3: Line 3:
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.  
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.  


==LM_LICENSE_FILE [[EnvironmentalVariables | Environmental Variable]]==
==Example use of the compiler==
Please make sure to set the LM_LICENSE_FILE environment variable to ''/etc/license.pgi''. 


In <tt>tcsh</tt>, you can do this as follows:
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.
setenv LM_LICENSE_FILE $LM_LICENSE_FILE:/etc/license.dat:/etc/license.pgi
 
In <tt>bash</tt>:
First, create a file <tt>hello.f90</tt> with the following contents:
  export LM_LICENSE_FILE="$LM_LICENSE_FILE:/etc/license.dat:/etc/license.pgi"
 
  PRINT *, "Hello World!"  
END

Revision as of 14:21, 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.

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, create a file hello.f90 with the following contents:

PRINT *, "Hello World!" 
END