Commit 0b785744 authored by TOLLENAERE Nicolas's avatar TOLLENAERE Nicolas
Browse files

Gcc again

parent 1531913c
......@@ -4,7 +4,7 @@ BLIS_LIB = $(BLIS_PREFIX)/lib/skx/libblis.a
OTHER_LIBS = -L/usr/lib -lm -lpthread -lpapi -lcblas
CC = icc
CC = gcc
CFLAGS = -O3 -Ofast -I$(BLIS_INC) -Wall -Wno-unused-function -march=native
LINKER = $(CC)
......@@ -14,16 +14,13 @@ SRCS = gen_matmul.c matmul.c utils.c timing.c matrix_utils.c
all: $(OBJS)
$(LINKER) $(OBJS) $(BLIS_LIB) $(OTHER_LIBS) -o mm_bench.x
#depend: .depend
#
#.depend:$(SRCS)
# rm -f ./.depend
# $(CC) $(CFLAGS) -MM $(SRCS) | sed '/.*/a \\t$(CC) $(CFLAGS) -DPAPI -c $$< -o $$@' > .depend
#
#include .depend
depend: .depend
%o:%c
$(CC) $(CFLAGS) -DPAPI -c $$< -o $$@
.depend:$(SRCS)
rm -f ./.depend
$(CC) $(CFLAGS) -MM $(SRCS) | sed '/.*/a \\t$(CC) $(CFLAGS) -DPAPI -c $$< -o $$@' > .depend
include .depend
clean:
rm -fr $(OBJS) mm_bench.x
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment