Use:
- make sequential
or
- make mpi
or
- make omp
Or you can use:
-
For sequential:
gcc -std=c99 gseidel_sequential.c -o sequential.out -lm
-
For OMP:
gcc gseidel_mp_schedule.c -std=c99 -lm -fopenmp -o openmp.out
-
For MPI:
mpicc gseidel_MPI_by_cols.c -std=c99 -lm -o openmpi.out
To compile, Remove -lm attribute
To avoid message: "A system call failed during shared memory initialization that should
not have. It is likely that your MPI job will now either abort or
experience performance degradation."
Please type "export TMPDIR=/tmp" (without quotes) at your terminal
To compile, Remove -lm attribute.
You must compile using -lm
For sequential: ./sequential.out [precision] [filename]
For OMP: ./omp.out [precision] [filename] [num_threads]
For MPI: mpirun -np [num_process] ./mpi.out [precision] [filename]
until MPI 0.1.0 version you only calculate matrix multiply processes numbers.
e.g. 4 process, matrix 16, 20, 24, ...