1
0
mirror of https://github.com/TREX-CoE/irpjast.git synced 2024-12-23 12:57:29 +01:00
irpjast/Makefile

31 lines
1.0 KiB
Makefile
Raw Normal View History

2021-04-27 01:18:48 +02:00
STARPU=~/StarPU/starpu-1.3.7/starpu-1.3.pc
IRPF90 = irpf90/bin/irpf90 --codelet=factor_een:2 --align=64 # -s nelec_8:504 -s nnuc:100 -s ncord:5 #-a -d
2021-03-18 10:48:23 +01:00
#FC = ifort -xCORE-AVX512 -g -mkl=sequential -qopt-zmm-usage=high
2021-04-27 01:18:48 +02:00
FC = ifort -xCORE-AVX512 -g -mkl=sequential -qopt-zmm-usage=high -traceback
FC = ifort -axCORE-AVX512 -g -mkl=sequential -qopt-zmm-usage=high -traceback
CC = icc -mkl=sequential $(shell pkg-config --cflags $(STARPU)) -C -traceback
2021-03-10 21:26:25 +01:00
FCFLAGS= -O3 -I .
2020-12-16 13:22:42 +01:00
NINJA = ninja
ARCHIVE = ar crs
2020-11-17 21:35:52 +01:00
RANLIB = ranlib
2021-04-23 23:35:06 +02:00
SRC= qmckl_blas_f.f90 qmckl_dgemm.c
2021-04-23 11:25:45 +02:00
OBJ= IRPF90_temp/qmckl_blas_f.o IRPF90_temp/qmckl_dgemm.o
2021-04-27 01:18:48 +02:00
LIB= -mkl=sequential $(shell pkg-config --libs $(STARPU))
2020-11-17 21:35:52 +01:00
-include irpf90.make
export
2021-04-23 23:35:06 +02:00
irpf90.make: IRPF90_temp/qmckl_blas_f.o
2021-03-10 13:49:19 +01:00
irpf90.make: $(filter-out IRPF90_temp/%, $(wildcard */*.irp.f)) $(wildcard *.irp.f) $(wildcard *.inc.f) Makefile
2020-11-17 21:35:52 +01:00
$(IRPF90)
2021-04-23 11:25:45 +02:00
2021-04-23 23:35:06 +02:00
IRPF90_temp/%.f90: %.f90
2021-04-23 14:18:59 +02:00
IRPF90_temp/%.c: %.c
2021-04-23 23:35:06 +02:00
IRPF90_temp/%.o: %.f90
$(FC) $(FCFLAGS) -g -c $< -o $@
2021-04-23 11:25:45 +02:00
IRPF90_temp/%.o: %.c
2021-04-23 14:18:59 +02:00
$(CC) -g -c $< -o $@