Makefile
763 Bytes
all:
include ../kaldi.mk
ifeq ($(CUDA), true)
TESTFILES =
ifeq ($(CUDA), true)
OBJFILES += feature-window-cuda.o feature-mfcc-cuda.o feature-online-cmvn-cuda.o \
online-ivector-feature-cuda-kernels.o online-ivector-feature-cuda.o \
online-cuda-feature-pipeline.o
endif
LIBNAME = kaldi-cudafeat
ADDLIBS = ../feat/kaldi-feat.a ../util/kaldi-util.a ../matrix/kaldi-matrix.a \
../base/kaldi-base.a ../cudamatrix/kaldi-cudamatrix.a \
../gmm/kaldi-gmm.a ../ivector/kaldi-ivector.a ../online2/kaldi-online2.a
LDFLAGS += $(CUDA_LDFLAGS)
LDLIBS += $(CUDA_LDLIBS)
%.o : %.cu
$(CUDATKDIR)/bin/nvcc -c -g $< -o $@ $(CUDA_INCLUDE) $(CUDA_FLAGS) $(CUDA_ARCH) -I../ -I$(OPENFSTINC)
endif
include ../makefiles/default_rules.mk