Skip to content
Snippets Groups Projects
Commit 20e08ca6 authored by Dirk Pleiter's avatar Dirk Pleiter
Browse files

Smaller updates

parent 7fecdf89
Branches
No related tags found
No related merge requests found
......@@ -39,7 +39,7 @@ ml PrgEnv-gnu
First it is necessary to book a node for interactive use:
```
salloc -A <allocation-name> -p main -N 1 -t 1:0:0
salloc -p shared --nodes=1 --cpus-per-task=32 -t 0:30:00 -A edu22.summer --reservation=<name-of-reservation>
```
You might also need to specify a **reservation** by adding the flag ``--reservation=<name-of-reservation>``.
......
......@@ -83,7 +83,7 @@ Recall from the OpenMP exercises that the number of threads is determined by an
The given serial code is not optimal, why? If you have time, go ahead and try to make it faster. Try to decrease the serial run time. Once the serial performance is optimal, redo the speedup measurements and comment on the result.
For debugging purposes you might want to visualize the computed solution. Uncomment the line ``save_vtk``. The result will be stored in ``result.vtk``, which can be opened in ParaView, available on Tegner after ``module add paraview``. Beware that the resulting file could be rather large, unless the space discretization (M,N) is decreased.
For debugging purposes you might want to visualize the computed solution. Uncomment the line ``save_vtk``. The result will be stored in ``result.vtk``, which can be opened in ParaView, available on Dardel after ``ml paraview``. Beware that the resulting file could be rather large, unless the space discretization (M,N) is decreased.
## A. About the Finite-Volume solver
......
......@@ -12,17 +12,16 @@ To compile your C OpenMP code using ``gcc``, therefore, use
gcc -O2 -fopenmp -o myprog.x myprog.c -lm
```
In Fortran, it is recommended to use the Intel compiler
For Fortran use
```
module load i-compilers
ifort -O2 -qopenmp -o myprog.x myprog.f90 -lm
gfortran -O2 -fopenmp -o myprog.x myprog.f90 -lm
```
To run your code, you will need to have an (e.g., interactive) allocation:
```
salloc -N 1 -t 4:00:00 -A <name-of-allocation> --reservation=<name-of-reservation>
salloc -p shared --nodes=1 --cpus-per-task=32 -t 0:30:00 -A edu22.summer --reservation=<name-of-reservation>
```
To set the number of threads, you need to set the OpenMP environment variable:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment