2
0

Makefile 496 B

12345678910111213141516171819202122
  1. NVCC=nvcc
  2. OPTIONS=-gencode arch=compute_61,code=sm_61 \
  3. -gencode arch=compute_62,code=sm_62 \
  4. -gencode arch=compute_70,code=sm_70 \
  5. -gencode arch=compute_72,code=sm_72 \
  6. -gencode arch=compute_75,code=sm_75 \
  7. -gencode arch=compute_80,code=sm_80 \
  8. -gencode arch=compute_86,code=sm_86
  9. TARGETS=$(patsubst %.cu, %.fatbin, $(wildcard *.cu))
  10. all: $(TARGETS)
  11. %.fatbin: %.cu
  12. $(NVCC) -fatbin $^ $(OPTIONS) -o $@
  13. .PHONY : clean, copy
  14. clean:
  15. rm $(TARGETS)
  16. copy:
  17. cp $(TARGETS) ../kernels/