File: tip

package info (click to toggle)
sprng 2.0a-8
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd, wheezy
  • size: 3,080 kB
  • ctags: 2,062
  • sloc: ansic: 30,350; fortran: 1,618; makefile: 573; 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)