Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2017
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Make 0.58 KB | None | 0 0
  1. .PHONY: all clean
  2.  
  3. gencode = arch=compute_50,code=sm_50
  4. libraries = -lm -lnlopt -lplplotd -lhdf5 -lhdf5_hl -laslog -lprogressbar -lncurses -lcuda
  5. debug = -g
  6.  
  7. all: pft-rosenfeld
  8.  
  9. pft-rosenfeld:                                              pft.o plot.o pt_mem.o analytics.o dft.o logging.o free_energy.cu helpers.cu rt.cu
  10.     nvcc -gencode=$(gencode) -rdc=true -o pft-rosenfeld pft.o plot.o pt_mem.o analytics.o dft.o logging.o free_energy.cu helpers.cu rt.cu $(libraries) $(debug)
  11.     rm -f *.o
  12.  
  13. %.o: %.c
  14.     gcc-6 $(debug) -O3 -c -std=gnu99 $< -o $@
  15.  
  16. clean:
  17.     rm -f pft-rosenfeld *.o
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement