Blame view

src/chain/Makefile 939 Bytes
8dcb6dfcb   Yannick Estève   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:
  
  include ../kaldi.mk
  LDFLAGS += $(CUDA_LDFLAGS)
  LDLIBS += $(CUDA_LDLIBS)
  
  TESTFILES = chain-supervision-test language-model-test
  
  OBJFILES = chain-supervision.o chain-numerator.o chain-den-graph.o \
            language-model.o chain-denominator.o chain-training.o \
            chain-generic-numerator.o
  ifeq ($(CUDA), true)
    OBJFILES += chain-kernels.o
  endif
  
  LIBNAME = kaldi-chain
  
  ADDLIBS = ../cudamatrix/kaldi-cudamatrix.a ../lat/kaldi-lat.a \
            ../fstext/kaldi-fstext.a ../hmm/kaldi-hmm.a ../tree/kaldi-tree.a \
            ../util/kaldi-util.a ../matrix/kaldi-matrix.a ../base/kaldi-base.a 
  
  # Make sure we have CUDA_ARCH from kaldi.mk,
  ifeq ($(CUDA), true)
    ifndef CUDA_ARCH
      $(error CUDA_ARCH is undefined, run 'src/configure')
    endif
  endif
  
  # Implicit rule for kernel compilation,
  %.o : %.cu
  	$(CUDATKDIR)/bin/nvcc -c $< -o $@ $(CUDA_INCLUDE) $(CUDA_FLAGS) $(CUDA_ARCH) -I../
  
  include ../makefiles/default_rules.mk