Non-parallel Compiling
If you do not wish to write parallel programs, the following compilers are available:
| on ted | /usr/bin/gcc | 4.1.2 |
| /usr/bin/gfortran | 4.1.2 | |
| pgi | 7.1-1 | |
| on micah | /usr/bin/gcc | 3.4.6 |
| pgi | 7.0-7 |
"pgi" refers to the Portland Compilers which include every flavor of compilers. To see a listing of the compilers, use
| ls /share/apps/pgi/linux86_64/version/bin |
where version is 7.1-1 for ted and 7.0-7 for micah.
To use the Portland Compilers, you must add these lines to your .bashrc shell or execute them each time you login and wish to compile.
| export PGI=/share/apps/pgi |
| export PATH=$PGI/linux86-64/version/bin:$PATH |
| export LM_LICENSE_FILE=$PGI/license.dat |
| export MANPATH=$MANPATH:/$PGI/man |
where version is 7.1-1 for ted and 7.0-7 for micah.
For micah, you also need to define the library path. Use the following as one line where the only space appears after "export".
| export LD_LIBRARY_PATH=/share/apps/pgi/linux86_64/7.0-7/libso: |
| /usr/pgi/7.0-7/share_objects/lib:/usr/pgi/7.0-7/share_objects/liblf:i |
| $LD_LIBRARY_PATH |
Compile using
| XX yourcode -o yourprogram |
where XX is the compiler, yourcode is your uncompiled code and yourpgrogram is the output.
If I were compiling a fortran program on ted and wanted to use a Portland compiler and my uncompiled program was mad.f, my line might be
/share/apps/bin/pgf77 mad.f -o mad
Margaret Doll 7-2009