Skip to content
fomics edited this page Jun 17, 2013 · 18 revisions

Welcome to the SummerSchool2013 wiki!


This page defines exercises for the the CSCS-USI 2013 summer school.


General instructions for using the Cray XK7 "Todi"

Wireless network: connect to "cscs", use password supplied during lecture.

  • Log into Todi:

ssh -Y todi # -Y allows X protocol

At this point you are on log-in node; cross-compiled code will not run here, but rather only on a "compute node"

  • Load the module with the GIT version control system

module load git

  • Swap in the GNU programming environment

module swap PrgEnv-cray PrgEnv-gnu

  • Allocate 1 compute node for your work (valid for one hour). This should suffice for one exercise.

salloc -N 1

With this allocation you should be able to compile and run software interactively. One node provides 16 CPU cores, e.g., for 16 MPI processes each with a single thread, one process with 16 threads, eight processes with two threads each, etc.

  • Later in the course you may experiment with the code distributed over multiple nodes, e.g.,

salloc -N 4

4 nodes will sensibly support up to 64 mpi processes, or a combination of processes or threads (but still with maximum 16 threads per nodes, since threads must be in a shared memory space).

Software Engineering component (July 8 - 9)

Exercise: Basic experiences with GIT version control system

First: the "exercise_mv" branch of the Tsunami model has to be checked out:

git clone --recursive https://github.com/fomics/SWE.git -b exercise_mv SWE_exercise

There are a number of options which you should recognize from the GIT lecture:

  • clone: create your local copy or "clone" of this repository
  • --recursive: indicates that this repository and all of its submodules should be cloned.
  • --b BRANCH_NAME: clone the branch with BRANCH_NAME
  • SWE_exercise: specify a non-default local directory name (default would be "SWE")

Exercise: Building the Tsunami code with Cmake

Exercise: Algorithmic changes to the Tsunami code

Clone this wiki locally