File: Makefile.cudacompile

package info (click to toggle)
faust 2.14.4~repack2-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 276,136 kB
  • sloc: cpp: 231,578; ansic: 15,403; sh: 10,871; java: 6,917; objc: 4,085; makefile: 3,002; cs: 1,077; ruby: 951; python: 885; xml: 550; yacc: 516; lex: 233; lisp: 201
file content (16 lines) | stat: -rw-r--r-- 789 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
dspsrc  := $(wildcard *.dsp)
cppsrc  := $(addprefix $(DEST), $(dspsrc:.dsp=.cpp))
appl 	:= $(addprefix $(DEST), $(dspsrc:.dsp=$(EXT)))

all :  $(appl)

NVCC := /usr/local/cuda/bin/nvcc

$(DEST)% : %.dsp
	faust $(VEC) $<  -a $(ARCH) -o $@.cpp
	$(NVCC) -m64 -gencode=arch=compute_10,code=\"sm_10,compute_10\"  -gencode=arch=compute_20,code=\"sm_20,compute_20\"  --compiler-options -fno-strict-aliasing -po maxrregcount=16 -I. -I/usr/local/cuda/include -I../../common/inc -I../../../shared//inc -DUNIX -O2 -c $@.cpp.cu -o  $@.cu.o
	llvm-g++ -O3 -I/opt/local -mfpmath=sse -msse -msse2 -msse3 -mmmx -m3dnow -ffast-math -ftree-vectorize  -I/usr/local/cuda/include -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS $(LIB) -L/usr/local/cuda/lib -lcudart $@.cpp $@.cu.o -o $@

clean :
	rm -f $(DEST)