Sherman-Morrison/independent_test_harness/Makefile.nvc_ompol.gpu

27 lines
837 B
Makefile
Raw Normal View History

2022-10-10 11:01:53 +02:00
#FC = ifx
CC = nvc
2022-10-10 11:01:53 +02:00
#CFLAGS=-std=c99 -O0 -Wall -g -DUSE_OMP_OFFLOAD_CUDA -DUSE_NVTX -mp -target=gpu
CFLAGS=-std=c99 -O3 -Wall -g -DUSE_OMP_OFFLOAD_CUDA -DUSE_NVTX -mp -target=gpu
2022-10-10 11:01:53 +02:00
INCLUDE =-I$(NVHPC_ROOT)/math_libs/include
INCLUDE+=-I$(NVHPC_ROOT)/cuda/11.7/targets/x86_64-linux/include
INCLUDE+=-I$(NVHPC_ROOT)/profilers/Nsight_Systems/target-linux-x64/nvtx/include
INCLUDE+=-I$(MKLROOT)/include
2022-10-10 11:01:53 +02:00
LDFLAGS=-L/usr/lib/x86_64-linux-gnu/hdf5/serial -lhdf5 -lhdf5_hl
LDFLAGS+=-L${MKLROOT}/lib/intel64 -lmkl_intel_lp64 -lmkl_pgi_thread -lmkl_core -mp -lpthread -lm -ldl
2022-10-10 11:01:53 +02:00
LDFLAGS+=-L$(NVHPC_ROOT)/math_libs/lib64 -lcublas -lcusolver -mp -target=gpu
all: clean test_nvc_ompol
2022-10-10 11:01:53 +02:00
test_nvc_ompol: kernels.o test.o helper.o
$(CC) $(LDFLAGS) -o $@ $^
2022-10-10 11:01:53 +02:00
%.o : %.c
$(CC) $(CFLAGS) $(INCLUDE) -c -o $@ $<
clean:
rm -rf *.o *genmod* test_nvc_ompol