Computations

These guidelines explain:

  • Where to run your computations (which computers)
  • How to start the computations
  • What to be aware of when storing large amounts of data

Please read this whole page to the end before running computations.

Where

You can either use your office PC or one of our computing servers (accessible with SSH):

Host name Operating system CPUs Memory Notes
syvert0.math.ntnu.no Linux (Ubuntu 10.04) 24 Intel CPUs
(4×6-core Xeon 2.67 GHz)
256 GB This computer also goes by the name syvert.math.ntnu.no
syvert1.math.ntnu.no Linux (Ubuntu 10.04) 4 Intel CPUs
(1×4-core Xeon 3.33 GHz)
16 GB

We especially recommend using the computing servers if your program can benefit from multiple cores (Parallel Toolbox in MATLAB, OpenMP in C/C++, etc.)

How

All computations should be started by adding the special command compute before the command that starts the computation. (You may also use the special command beregning, these are equivalent. The example below uses beregning).

Examples:

syvert0:~$ beregning matlab
syvert0:~$ beregning ./a.out
syvert0:~$ beregning matlab -nojvm mysim.m
syvert0:~$ beregning ./ns -N 8 -T 10 init.dat > sim.out

and so on. The compute/beregning command makes sure that your computation is run with the right priority, so that you don't have to worry about using more than your share of CPU.

If you're running your own C/C++/Fortran code (as opposed to code written in R or Matlab), it is highly recommended to turn on optimizing in the compiler. This will increase the speed of your program. The following compilers are available:

Host Compiler Command
syvert0 GNU C compiler 4.4
GNU C++ compiler 4.4
GNU Fortran 4.4
gcc -O3 -march=native 
g++ -O3 -march=native 
gfortran -O3 -march=native 
syvert1 GNU C compiler 4.4
GNU C++ compiler 4.4
GNU Fortran 4.4
gcc -O3 -march=native
g++ -O3 -march=native
gfortran -O3 -march=native

How to store your data

Please do not store large data sets and results in your home directory. Files in your home directory are backed up by a central backup system to prevent data loss. Large datasets and easily reproducable result files from computations put an unneccessarily large load on the servers and backup systems, not to mention financial cost on the department as backup is quite expensive.

Data sets and computation results should be stored in your scratch directory /global/work/<username> (replace <username> with your login name). This directory is accessible from all our Unix computers, and also accessible from Windows as \\mamba.math.ntnu.no\work\<username>.

If your program is disk-intensive, please use the local /work scratch directory. While /work is local to the computer you're using and not shared (not accessible from Windows or from other Unix hosts), it is noticeably faster than /global/work, so for disk-intensive processes, /work is preferred and will make your program run much faster.

Beware that these directories are not backed up, but on the other hand, there's more space and no restrictions on usage (as long as the space you occupy is related to your computations).

However: If the computation produces results you are going to publish, or data you for other reasons can't risk to lose, you may of course save the data to your home directory. In this case, move the data to your home directory when the computation is finished. Computations should never use your home directory as working directory - please use /work or /global/work for that.

More information




Thanks for reading this far!

If you still have questions (or other feedback), you're more than welcome to email or call us, and we'll assist as best we can. Please see our contact information.




2011-09-25, Martin Strand