File: tip

package info (click to toggle)
sprng 2.0a-16
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,308 kB
  • sloc: ansic: 30,353; fortran: 1,618; makefile: 575; cpp: 58; sh: 5
file content (20 lines) | stat: -rw-r--r-- 625 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Manual Compililing

Serial examples: 
gcc -o sprngMY sprng.c -L../lib -lsprng -lm -I../include -lgmp -I.

g77 -o sprngfMY sprngf.F -L../lib -lsprng -lm -I../include -lgmp -I.



MPI examples (MPICH inplementation of MPI):
mpicc -o sprng_mpiMy sprng_mpi.c -L../lib -lsprng -lm -I../include -lgmp -I.

mpif77 -o sprngf_mpiMy sprngf_mpi.F -L../lib -lsprng -lm -I../include -lgmp -I.
Only mpif77 requiries explicit "-I.".

mpiCC -o sprngC_mpiMy sprngC_mpi.C -L../lib -lsprng -lm -I../include -lgmp -I.

Running  parallel examples (MPICH implementation of MPI):
mpirun -np 4 executable_file
where 4 is for four nodes (simulated)