|
|
C/C++ Compilers on Sequoia at MCSR
Sequoia provides both Intel and GNU C compilers.
Intel Compiler
Before using the Intel C compiler, you will need to
setup
your environment correctly. Once you have done that, you can compile by
using the following commands:
icc -o program_name program_name.c (for C)
icc -o program_name program_name.cpp (for C++)
You can get more information about using the Intel compiler by running:
icc --help
GNU Compiler
To compile with GCC, run:
gcc -o program_name program_name.c (for C)
g++ -o program_name program_name.cpp (for C++)
Executing a compiled program
After compiling your program with either compiler, the program can then
be executed using the command:
./program_name
Also see MPI on Sequoia.
|