前提・実現したいこと
cudaは無事にインポートできているが、以下のようなエラーメッセージが発生。それをもとにcupy102をインストールしたが、エラーメッセージに変化なし。(pip listでインストールが無事行われていることは確認済み)
発生している問題・エラーメッセージ
RuntimeError Traceback (most recent call last) <ipython-input-28-dfdbf54d87a6> in <module>() 2 from chainer import cuda 3 gpu_device = 1 ----> 4 cuda.get_device_from_id(gpu_device).use() 5 NN.to_gpu() 1 frames /usr/local/lib/python3.6/dist-packages/chainer/backends/cuda.py in get_device_from_id(device_id) 277 if device_id is not None: 278 if device_id >= 0: --> 279 check_cuda_available() 280 return Device(int(device_id)) 281 return DummyDevice /usr/local/lib/python3.6/dist-packages/chainer/backends/cuda.py in check_cuda_available() 140 '(see https://github.com/chainer/chainer#installation).') 141 msg += str(_resolution_error) --> 142 raise RuntimeError(msg) 143 if (not cudnn_enabled and 144 not _cudnn_disabled_by_user and RuntimeError: CUDA environment is not correctly set up (see https://github.com/chainer/chainer#installation).CuPy is not correctly installed. If you are using wheel distribution (cupy-cudaXX), make sure that the version of CuPy you installed matches with the version of CUDA on your host. Also, confirm that only one CuPy package is installed: $ pip freeze If you are building CuPy from source, please check your environment, uninstall CuPy and reinstall it with: $ pip install cupy --no-cache-dir -vvvv Check the Installation Guide for details: https://docs-cupy.chainer.org/en/latest/install.html original error: libcudart.so.10.2: cannot open shared object file: No such file or directory
該当のソースコード
python
1from chainer import cuda 2gpu_device = 1 3cuda.get_device_from_id(gpu_device).use() 4NN.to_gpu()
試したこと
cupy102のインストール
cupy90を代わりにインストールしても同じ結果でした。
補足情報(FW/ツールのバージョンなど)
実行環境はwindows10でgoogle colaboratory を使用しています。
回答2件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2020/07/17 12:06