Difference between revisions of "LISFLOOD-FP"

From SourceWiki
Jump to navigation Jump to search
Line 22: Line 22:
 
; 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:
 
  >g++ your_code.cpp –O3 –o your_code
 
  >g++ your_code.cpp –O3 –o your_code
; Intel C++ v9.1 (linux): Academic licence costs £61 per seat through Polyhedron [http://www.polyhedron.com/ Polyhedron]
+
; Intel C++ v9.1 (linux): Academic licence costs £61 per seat through http://www.polyhedron.com/ Polyhedron]. Log into the linux machine dylan through SSH secure shell, change directory to where the source code is and type
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<br/>  
 
  >source /opt/intel/cc/10.0.023/bin/iccvars.csh<br/>  
 
Then compile the code using
 
Then compile the code using
 
  >icpc lisflood.cpp -O3 -static -o lisflood
 
  >icpc lisflood.cpp -O3 -static -o lisflood

Revision as of 15:23, 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.

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 http://www.polyhedron.com/ 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