mirror of
https://github.com/TREX-CoE/Sherman-Morrison.git
synced 2025-01-12 22:18:36 +01:00
87e319189e
- Included lib paths for MKL/HDF5 and cuBLAS - Cleaned Makefile - Added GPU node session request script
30 lines
625 B
Makefile
30 lines
625 B
Makefile
FC = ifx
|
|
CC = nvc
|
|
|
|
CFLAGS=-std=c99 -O3 -Wall -g
|
|
|
|
LFLAGS=-L$(HDF5_DIR)/lib -lhdf5 -lhdf5_hl
|
|
LFLAGS+=-L$(MKLROOT)/lib/intel64 -lmkl_intel_lp64 -lmkl_sequential -lmkl_core -lpthread -lm -ldl
|
|
LFLAGS+=-lcublas
|
|
|
|
## Link with icc
|
|
# test: sm.o test.o detupdate21.o meuk.o
|
|
# $(CC) $(LFLAGS) -o test sm.o detupdate21.o test.o meuk.o
|
|
test: sm.o test.o meuk.o
|
|
$(CC) $(LFLAGS) -o test sm.o test.o meuk.o
|
|
|
|
%.o: %.f90
|
|
$(FC) $(FFLAGS) -c -o $@ $<
|
|
|
|
%.o : %.c
|
|
$(CC) $(CFLAGS) $(INCLUDE) -c -o $@ $<
|
|
|
|
clean:
|
|
rm -rf *.o *genmod* test test
|
|
|
|
debug_n_2: test
|
|
gdb --silent --args ./test n 2
|
|
|
|
debug_a_2: test
|
|
gdb --silent --args ./test a 2
|