CCE
To use the Cray compilers the appropriate module file needs to be loaded. Cray compilers are available only on Lindgren.
In order to use the cray compilers on Lindgren, it is necessary to have the PrgEnv-cray loaded. When that module is loaded the cc, CC and ftn scripts will automatically use the Cray compiler.
When you log into Lindgren PrgEnv-pgi is the default, to swap to the Cray PrgEnv use the command
module swap PrgEnv-pgi PrgEnv-cray
When you first load the Intel PrgEnv the default cray compiler will be active. To see which versions of the the Cray compiler are available use
module avail cce
To use a different version of the cray compiler you can use for example
module swap cce/7.4.0 cce/7.3.1.101
To check the version of Cray compiler, simply type:
cc -V
As stated in the lindgren compiling section the cc, CC and ftn scripts automatically link the different librarys depending on which modules are loaded. FFTW version 2 is a bit more complicted however.
The available drivers (also for linking of MPI applications) are:
- Fortran programs: ftn
- C programs: cc
- C++ programs: CC
cc -o myprog myprog.c
ftn -o myprog myprog.f
For more information on the various compiler flags you read the various man pages e.g.
man crayftn man craycc
More about Cray compilers
More about modules


