kaldi或者eesen atlas編譯失敗

jinmingz發表於2016-07-27

OS: 16.04

CUDA: 8.0

你是不是遇到了這個問題,執行./install_atlas的時候一直報錯:

make[3]: **[atlas_run] Error 44 ....


在stackflow上有這個問題,是由於kaldi預設的是atlas-3.10.0, 而這個版本是不穩定的,需要使用最新的版本: atlas-3.10.2, 不確定是不是因為系統是16.04的原因

然後就OK了, 可以修改install_atlas.sh指令碼的內容如下:

if [ ! -f atlas3.10.2.tar.bz2 ]; then
  wget -T 10 -t 3 http://sourceforge.net/projects/math-atlas/files/Stable/3.10.2/atlas3.10.2.tar.bz2 || exit 1;
fi

tar -xvjf atlas3.10.2.tar.bz2  || exit 1;

cd ATLAS
mkdir build # you should probably have a name that reflects OS, CPU, etc... but this is fine
cd build


# sometimes the -b 32 option can be helpful to "configure"
# when it's on a 64-bit CPU but a 32-bit OS.  It won't hurt
# if it's not a 64-bit CPU.
x=`uname -a | awk '{print $(NF-1)}'`
if [ "$x" == "i686" -o "$x" == "x86" ]; then
  opt="-b 32"
fi

../configure $opt --prefix=`pwd`/install || exit 1;
make -j 2 || exit 1;
make check -j 2 || exit 1;
make install || exit 1;


相關文章