From accadc2c0c9a12a07ff39df3ee2e02f399054d8f Mon Sep 17 00:00:00 2001 From: Determinant Date: Mon, 29 Feb 2016 19:49:18 +0800 Subject: add network config for timit baseline --- Makefile | 30 ++++++++++++++++++++++++++---- 1 file changed, 26 insertions(+), 4 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 0982295..d8612dd 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,28 @@ .PHONY: all clean install luajit luarocks speech SHELL := /bin/bash PREFIX := $(CURDIR)/install/ +#CUDA_BASE := /usr/local/cuda-7.0 +CUDA_BASE := /usr/local/cuda +BLAS_BASE := /usr/lib/ +BLAS_LDFLAGS := -L$(BLAS_BASE) -Wl,-rpath=$(BLAS_BASE) +BLAS_TYPE := atlas +KALDI_BASE := /speechlab/tools/KALDI/kaldi-master/ + +MKL_LDFLAGS := -lmkl_rt +ATLAS_LDFLAGS := -lcblas -llapack_atlas +ifeq ($(BLAS_TYPE), mkl) +BLAS_LDFLAGS += $(MKL_LDFLAGS) +else ifeq ($(BLAS_TYPE), atlas) +BLAS_LDFLAGS += $(ATLAS_LDFLAGS) +else +$(error Invalid blas type) +endif +export CUDA_BASE +export KALDI_BASE +export BLAS_LDFLAGS + +.PHONY: htk_io kaldi_io kaldi_decode + all: luajit luarocks install luajit: PREFIX=$(PREFIX) ./tools/build_luajit.sh @@ -8,12 +30,12 @@ luarocks: PREFIX=$(PREFIX) ./tools/build_luarocks.sh install: cd nerv; $(PREFIX)/bin/luarocks make CFLAGS=$(CFLAGS) -speech: - cd speech/speech_utils; $(PREFIX)/bin/luarocks make - cd speech/htk_io; $(PREFIX)/bin/luarocks make - cd speech/kaldi_io; $(PREFIX)/bin/luarocks make +speech: htk_io kaldi_io kaldi_decode +htk_io kaldi_io kaldi_decode: + cd speech/$@; $(PREFIX)/bin/luarocks make clean: cd nerv && make clean cd speech/speech_utils && make clean cd speech/htk_io && make clean cd speech/kaldi_io && make clean + cd speech/kaldi_decode && make clean -- cgit v1.2.3-70-g09d2