Heap memory for matrix and elapsed time

This commit is contained in:
Fabio Salvini
2016-11-12 21:53:11 +01:00
parent 85c3977901
commit 784416b7ca
8 changed files with 115 additions and 37 deletions

View File

@@ -1,12 +1,15 @@
CC=gcc
CC=mpicc
CFLAGS=-Wall -lm -std=c99
all: config jacobi_sequential.c
${CC} ${CFLAGS} config.o jacobi_sequential.c -o jacobi.out
all: config utils jacobi_sequential.c
${CC} ${CFLAGS} config.o utils.o jacobi_sequential.c -o jacobi.out
config: ../config/config.c
${CC} -c ${CFLAGS} ../config/config.c
utils: ../utils/utils.c
${CC} -c ${CFLAGS} ../utils/utils.c
.PHONY: clean
clean:
rm -f *.out *.o