Assignments

In the following pages I will call the C-compiler cc, the Fortran-compiler fc and the C++-compiler CC. The actual names may be different. Note also that filename suffixes are not standardized; you must read the documentation for your compiler. In the following pages I will assume that a Fortran90-program, in free format, has the suffix .f90 (so a filename could be my_prog.f90). For C I assume that the filename would be my_prog.c and for C++ I will use my_prog.cc. When you compile you would usually use a few options (flags) e.g. for optimization. I have left out all flags in my examples (the names are not standardized).

If you do not have a Chalmers/GU account, you need to contact the helpdesk to get a personal account.


Here is fsecond.c. (for use with Fortran). This is how you use it...

Here is csecond.c (for use with C). Don't forget to write a prototype.

C and large arrays

A few simple programs to get you started.

Information about the Fortran90-compilers.

More on mixing C and Fortran


I have set the dates very late, but start a lot earlier (or you will not finish in time).

Matlab  (due 2008-04-22)

Uniprocessor optimization ue 2008-05-13)

POSIX threads (due 2008-05-23)

MPI   (due 2008-05-23)

OpenMP  (due 2008-05-23)

Talk I have planned that we should end the course with a series of short (15 minutes) talks by the participants. Here are some suggestions, a mix of old and new topics.