python3でchainer(CUDA)が一部動いた
6.27現在ではpip3 install chainerでインストールされるものは対応されていない。
sudo pip3 install -e git+https://github.com/pfnet/chainer#egg=chainer-master
これで最新版が入るのかな。
- 動いたサンプル
MNIST
CPU OK CUDA OK
ptd
CPU OK CUDA OK
sentiment
CPU OK CUDA NG
sentimentサンプルがCUDAで動きませんでした。
struct.error: required argument is not an integer
terminate called after throwing an instance of 'pycuda::error'
what(): explicit_context_dependent failed: invalid device context - no currently active context?
中止 (コアダンプ)
このサンプルはpython2のCUDAでは動くけれど何故かCPUよりも速度が遅くて謎。
python2との速度比較
python2のCuDNN適用前の速度とpython3が同じぐらい
3系だとpycudaの関係でCuDNNが有効になってない?あるいはnumpyをソースからじゃなくpipでインストールしちゃってるから?よくわからない。