Intel c compiler code#
Your code will run faster on a 64-bit machine if compiled for the intel64 architecture.
While ia32 provides greater portability, the Math Department no longer has any 32-bit machines. You will probably wish to compile your code for the intel64 architecture. Intel compilers are optimized to computer systems using processors that support Intel architectures. Intel C++ Compiler also is known as ICC available for both Linux and windows. The scripts also require you to specify a choice of architecture for the compiler. Best C++ and C compilers for Windows/Linux. You can determine which shell you are using by typing, "echo $SHELL" at a command prompt. Most users at the Math Department are using bash as their shell. You will have to choose a script based upon your choice of login shell and compiler. If you see an error message that says the compiler was unable to check out a license, that is probably because you did not source the appropriate script. Sourcing a Script To Set Environmental Variablesīefore you can use the Intel compilers, you must source a shell script to set environmental variables. Tip: The Math Department IT staff strongly suggests you consider using the "make" utility to compile your code. Example, "icc -o HelloWorld helloworld.c" Use either icc or ifort to compile your code.Source a script to set the proper environmental variables for your choice of compiler (see below).The default emulator can be opened using Control+Alt+t. Math department workstations have several terminal emulators installed.
To use these compilers, do the following: These programs should be available on all department desktop workstations and research machines. The Math Department supports the Intel C++ compiler, icc, and the Intel FORTRAN compiler, ifort.