
Cray Research is now packaging the compilers, libraries (CrayLibs), and performance tools (CrayTools) into a "programming environment" (PrgEnv). The new package provides a more integrated environment and simplifies testing of new versions. The PrgEnv is located in /opt/ctl (rather than scattered in /bin, /usr/bin, /lib, or /usr/lib).
To use the PrgEnv, you must first initialize it. This is done with the "module" interface. This interface does the necessary setting up of paths, manpaths, and environment variables.
Important notes
- csh/tcsh users should put these lines in their .cshrc file:
# Initialize modules source /opt/modules/modules/init/csh module load modules PrgEnv- ksh/sh users should put these lines in their .profile file:
# Initialize modules . /opt/modules/modules/init/ksh module load modules PrgEnv
- The above statements should follow all other path setting statements.
- csh users should note that because their .login file is executed after .cshrc, they will also need to move any path or manpath code from .login to .cshrc.
% module list
Currently Loaded Modulefiles:
1) modules 2) craylibs 3) craytools 4) cf90 5) PrgEnv
% module avail
--------- /opt/modules/modules/modulefiles ---------
PrgEnv cf90.2.0.0.0 craylibs.2.0.0.0 modules
PrgEnv.new cf90.2.0.0.2 craytools
cf90 craylibs craytools.2.0.0.0
% f90 -V
Cray CF90 Version 2.0.0.0 06/18/96 17:01:33
% module switch cf90 cf90.2.0.0.2
Switching 'cf90' to 'cf90.2.0.0.2'...ok.
% f90 -V
Cray CF90 Version 2.0.0.2 06/18/96 17:03:50
% module list
Currently Loaded Modulefiles:
1) modules 2) craylibs 3) craytools 4) cf90.2.0.0.2 5) PrgEnv
% module switch cf90.2.0.0.2 cf90 # Restore previous default version
% module rm PrgEnv
% module load PrgEnv