NAGWareCompiler: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
Line 5: | Line 5: | ||
==Example use of the compiler== | ==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. | 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 <tt>hello. | First, create a file <tt>hello.f95</tt> with the following contents: | ||
PRINT *, "Hello World!" | PRINT *, "Hello World!" | ||
END | END |
Revision as of 14:24, 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.f95 with the following contents:
PRINT *, "Hello World!" END