cuda, cudnnのパスを通しておく
pip install cython
CUDNN_ROOT=$[[HOME]]/tools/cuda/ BACKEND=cuda pip install git+https://github.com/clab/dynet#egg=dynet
done!!
# 以下の情報は古いです。
- install mercurial (local)
https://www.mercurial-scm.org/downloads
wget https://www.mercurial-scm.org/release/mercurial-4.4.tar.gz
tar zxvf mercurial-4.4.tar.gz
cd mercurial-4.4/
make local
make PREFIX=/my/local/path/ install
- set up Python (2) with anaconda
pip install cython numpy # if you don't have it already.
mkdir dynet-base
cd dynet-base
git clone https://github.com/clab/dynet.git
hg clone https://bitbucket.org/eigen/eigen -r 699b659
cd dynet
mkdir build
cd build
cmake .. -DEIGEN3_INCLUDE_DIR=/ABSOLUTE/PATH/TO/eigen -DPYTHON=`which python` -DBACKEND=cuda
make -j 2 # replace 2 with the number of available cores
cd $PATH_TO_DYNET/build/python
python ../../setup.py EIGEN3_INCLUDE_DIR=$PATH_TO_EIGEN build --build-dir=.. --skip-build install --user
export DYLD_LIBRARY_PATH=/path/to/dynet/build/dynet/:$DYLD_LIBRARY_PATH
# if the environment is Linux, use LD_LIBRARY_PATH instead.
export LD_LIBRARY_PATH=/path/to/dynet/build/dynet/:$LD_LIBRARY_PATH
最終更新:2018年05月13日 14:51