-
Notifications
You must be signed in to change notification settings - Fork 0
/
MakefileCPU
25 lines (23 loc) · 949 Bytes
/
MakefileCPU
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
CC := gcc
AR := ar
INCLUDES :=
CONF_FLAGS := -DV100=0 -DNOACC=1 -DCUDA=0 -DOPENMP=0 -DHIP=0
FLAGS := -O3 -g
CFLAGS := -lm -std=c99
LIBS = -lm
OBJSORDERED = simple_blas.o blas.o GS.o it_jacobi.o line_jacobi.o prec.o cg.o io_utils.o
OBJSDRIVER1 = cg_driver.o
OBJSDRIVER2 = cg_driver2.o
OBJSDRIVER3 = mm_driver.o
# Rules
all: lap_cpu_laplacian lap_cpu_cg lap_cpu_spmv
%.o: %.c
${CC} ${CONF_FLAGS} ${CFLAGS} ${FLAGS} ${INCLUDES} -o $@ -c $<
lap_cpu_laplacian: ${OBJSORDERED} ${OBJSDRIVER1}
${CC} ${CONF_FLAGS} ${CFLAGS} -o $@ ${OBJSORDERED} ${OBJSDRIVER1} ${LIBS}
lap_cpu_cg: ${OBJSORDERED} ${OBJSDRIVER2}
${CC} ${CONF_FLAGS} ${CFLAGS} -o $@ ${OBJSORDERED} ${OBJSDRIVER2} ${LIBS}
lap_cpu_spmv: ${OBJSORDERED} ${OBJSDRIVER3}
${CC} ${CONF_FLAGS} ${CFLAGS} -o $@ ${OBJSORDERED} ${OBJSDRIVER3} ${LIBS}
clean:
rm -f *.o lap_ompinogpu_laplacian lap_cpu_spmv lapnogpu_omp_cg