Difference between revisions of "LISFLOOD-FP"
Paul-bates (talk | contribs) |
Paul-bates (talk | contribs) |
||
Line 11: | Line 11: | ||
This will setup the paths and links to libraries the compiler needs and open a command line window. Change directory to where your source code is and type: | This will setup the paths and links to libraries the compiler needs and open a command line window. Change directory to where your source code is and type: | ||
>cl your_code.cpp /O2 | >cl your_code.cpp /O2 | ||
− | ; Intel C++ v9.1 (Windows): Academic licence costs £61 per seat through [http://www.polyhedron.com/ Polyhedron]. This compiler requires the [http://msdn2.microsoft.com/en-us/library/60k1461a(VS.80).aspx Microsoft C++ | + | ; Intel C++ v9.1 (Windows): Academic licence costs £61 per seat through [http://www.polyhedron.com/ Polyhedron]. This compiler requires the [http://msdn2.microsoft.com/en-us/library/60k1461a(VS.80).aspx Microsoft C++ windows compiler] to be installed, but you can also use it on its own as a command line compiler. It is also integrated into the [http://en.wikipedia.org/wiki/Microsoft_Visual_Studio Visual Studio 2005] environment if you wish to use it that way. To use the command line, go to the start menu and find: |
“\Start Menu\Programs\Intel(R) Software Development Tools\ | “\Start Menu\Programs\Intel(R) Software Development Tools\ | ||
Intel(R) C++ Compiler 9.1\Build Environment for IA-32 applications”. | Intel(R) C++ Compiler 9.1\Build Environment for IA-32 applications”. | ||
Line 19: | Line 19: | ||
>icl your_code.cpp /O3 | >icl your_code.cpp /O3 | ||
which generates an executable that is almost as quick. | which generates an executable that is almost as quick. | ||
+ | So far we've found that the Intel compiler gives a speed up of about 5x over our our Borland Builder-compiled version of the model. | ||
===Linux=== | ===Linux=== | ||
; g++ (free): This compiler can be used by logging into the linux machines dylan or brian through SSH secure shell. To use it, change directory to where your source code is and type: | ; g++ (free): This compiler can be used by logging into the linux machines dylan or brian through SSH secure shell. To use it, change directory to where your source code is and type: | ||
Line 26: | Line 27: | ||
Then compile the code using | Then compile the code using | ||
>icpc lisflood.cpp -O3 -static -o lisflood | >icpc lisflood.cpp -O3 -static -o lisflood | ||
+ | Our tests show that on a linux box the Intel compiler is about 1.5-2 times faster than g++. |
Revision as of 15:32, 24 October 2007
This page contains information for the Lisflood model developers.
Latest compiler information
Windows
- Microsoft C++ (Windows)
- Bristol University have a site CHEST licence for this, so no costs to install. This compiler can be used from a stand alone command line or using the MS Visual Studio 2005 debugging environment. To use the command line, go to the start menu and find:
“\Start Menu\Programs\Microsoft Visual Studio 2005\Visual Studio Tools\ Visual Studio 2005 Command Prompt”
This will setup the paths and links to libraries the compiler needs and open a command line window. Change directory to where your source code is and type:
>cl your_code.cpp /O2
- Intel C++ v9.1 (Windows)
- Academic licence costs £61 per seat through Polyhedron. This compiler requires the Microsoft C++ windows compiler to be installed, but you can also use it on its own as a command line compiler. It is also integrated into the Visual Studio 2005 environment if you wish to use it that way. To use the command line, go to the start menu and find:
“\Start Menu\Programs\Intel(R) Software Development Tools\ Intel(R) C++ Compiler 9.1\Build Environment for IA-32 applications”.
This will setup the paths and links to libraries the compiler needs and open a command line window. Change directory to where your source code is and type:
>icl your_code.cpp /fast
Note: the /fast option may not generate a working executable for older processor architectures. In this case you can use:
>icl your_code.cpp /O3
which generates an executable that is almost as quick. So far we've found that the Intel compiler gives a speed up of about 5x over our our Borland Builder-compiled version of the model.
Linux
- g++ (free)
- This compiler can be used by logging into the linux machines dylan or brian through SSH secure shell. To use it, change directory to where your source code is and type:
>g++ your_code.cpp –O3 –o your_code
- Intel C++ v9.1 (linux)
- Academic licence costs £61 per seat through Polyhedron. Log into the linux machine dylan through SSH secure shell, change directory to where the source code is and type
>source /opt/intel/cc/10.0.023/bin/iccvars.csh
Then compile the code using
>icpc lisflood.cpp -O3 -static -o lisflood
Our tests show that on a linux box the Intel compiler is about 1.5-2 times faster than g++.