Blame view
src/cudadecoder/Makefile
1.02 KB
8dcb6dfcb first commit |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
all: EXTRA_CXXFLAGS = -Wno-sign-compare include ../kaldi.mk ifeq ($(CUDA), true) # Make sure we have CUDA_ARCH from kaldi.mk, ifndef CUDA_ARCH $(error CUDA_ARCH is undefined, run 'src/configure') endif TESTFILES = OBJFILES = batched-threaded-nnet3-cuda-pipeline.o decodable-cumatrix.o \ cuda-decoder.o cuda-decoder-kernels.o cuda-fst.o LDFLAGS += $(CUDA_LDFLAGS) LDLIBS += $(CUDA_LDLIBS) LIBNAME = kaldi-cudadecoder ADDLIBS = ../cudamatrix/kaldi-cudamatrix.a ../base/kaldi-base.a ../matrix/kaldi-matrix.a \ ../lat/kaldi-lat.a ../util/kaldi-util.a ../matrix/kaldi-matrix.a ../gmm/kaldi-gmm.a \ ../fstext/kaldi-fstext.a ../hmm/kaldi-hmm.a ../gmm/kaldi-gmm.a ../transform/kaldi-transform.a \ ../tree/kaldi-tree.a ../online2/kaldi-online2.a ../nnet3/kaldi-nnet3.a \ ../cudafeat/kaldi-cudafeat.a # Implicit rule for kernel compilation %.o : %.cu $(CUDATKDIR)/bin/nvcc -c $< -o $@ $(CUDA_INCLUDE) $(CUDA_FLAGS) $(CUDA_ARCH) -I../ -I$(OPENFSTINC) endif include ../makefiles/default_rules.mk |