2022-10-10 11:01:53 +02:00
|
|
|
CC=icc
|
|
|
|
CFLAGS=-std=c99 -O3 -Wall -g -xCORE-AVX2
|
|
|
|
|
|
|
|
LDFLAGS=-L/usr/lib/x86_64-linux-gnu/hdf5/serial -lhdf5 -lhdf5_hl
|
|
|
|
LDFLAGS+=-L$(MKLROOT)/lib/intel64 -lmkl_intel_lp64 -lmkl_sequential -lmkl_core -lpthread -lm -ldl
|
|
|
|
|
2022-11-08 15:35:25 +01:00
|
|
|
all: clean test_icc_mkl_sequential
|
2022-10-10 11:01:53 +02:00
|
|
|
|
2022-11-08 15:35:25 +01:00
|
|
|
test_icc_mkl_sequential: kernels.o test.o helper.o
|
|
|
|
$(CC) -o $@ $^ $(LDFLAGS)
|
2022-10-10 11:01:53 +02:00
|
|
|
|
|
|
|
%.o : %.c
|
|
|
|
$(CC) $(CFLAGS) $(INCLUDE) -c -o $@ $<
|
|
|
|
|
2022-10-17 14:56:32 +02:00
|
|
|
clean:
|
2022-11-08 15:35:25 +01:00
|
|
|
rm -rf *.o *genmod* test_icc_mkl_sequential
|