#FC = ifx #CC = nvc #CFLAGS=-std=c99 -O0 -Wall -g -DHAVE_CUBLAS_OFFLOAD -mp -target=gpu CFLAGS=-std=c99 -O3 -Wall -g -DHAVE_CUBLAS_OFFLOAD -mp -target=gpu INCLUDE=-I$(NVHPC_ROOT)/math_libs/include 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 LDFLAGS+=-L$(NVHPC_ROOT)/math_libs/lib64 -lcublas -lcusolver -mp -target=gpu all: test_nvc_ompol test_nvc_ompol: sm.o test.o meuk.o $(CC) $(LDFLAGS) -o test_nvc_ompol sm.o test.o meuk.o %.o : %.c $(CC) $(CFLAGS) $(INCLUDE) -c -o $@ $< clean: rm -rf *.o *genmod* test_nvc_ompol