質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.50%
Windows 10

Windows 10は、マイクロソフト社がリリースしたOSです。Modern UIを標準画面にした8.1から、10では再びデスクトップ主体に戻され、UIも変更されています。PCやスマホ、タブレットなど様々なデバイスに幅広く対応していることが特徴です。

CUDA

CUDAは並列計算プラットフォームであり、Nvidia GPU(Graphics Processing Units)向けのプログラミングモデルです。CUDAは様々なプログラミング言語、ライブラリ、APIを通してNvidiaにインターフェイスを提供します。

Q&A

解決済

1回答

11595閲覧

Tensorflow CUDA10 対応?(Windows10)<Could not find 'cudart64_100.dll'.>

Bonziri

総合スコア16

Windows 10

Windows 10は、マイクロソフト社がリリースしたOSです。Modern UIを標準画面にした8.1から、10では再びデスクトップ主体に戻され、UIも変更されています。PCやスマホ、タブレットなど様々なデバイスに幅広く対応していることが特徴です。

CUDA

CUDAは並列計算プラットフォームであり、Nvidia GPU(Graphics Processing Units)向けのプログラミングモデルです。CUDAは様々なプログラミング言語、ライブラリ、APIを通してNvidiaにインターフェイスを提供します。

0グッド

0クリップ

投稿2019/07/01 14:17

Tensorflow-gpuの環境構築

リンク内容
https://www.tensorflow.org/install/source_windows
上記のTensorflowの公式サイトより,最近CUDA10.0に対応した?ことが分かったので,実装しようとしたところ,下記のようなエラーコードが出ました.
大事なのは,おそらく最後のImportErrorだと思っています.

エラーコード

OSError Traceback (most recent call last) ~\Anaconda3\envs\gpu\lib\site-packages\tensorflow\python\platform\self_check.py in preload_check() 74 try: ---> 75 ctypes.WinDLL(build_info.cudart_dll_name) 76 except OSError: ~\Anaconda3\envs\gpu\lib\ctypes\__init__.py in __init__(self, name, mode, handle, use_errno, use_last_error) 347 if handle is None: --> 348 self._handle = _dlopen(self._name, mode) 349 else: OSError: [WinError 126] 指定されたモジュールが見つかりません。 During handling of the above exception, another exception occurred: ImportError Traceback (most recent call last) <ipython-input-4-e7cebbfb4338> in <module> 5 import matplotlib.pylab as plt 6 matplotlib.style.use("ggplot") ----> 7 import tensorflow as tf 8 from tqdm import tqdm 9 import cv2 ~\Anaconda3\envs\gpu\lib\site-packages\tensorflow\__init__.py in <module> 26 27 # pylint: disable=g-bad-import-order ---> 28 from tensorflow.python import pywrap_tensorflow # pylint: disable=unused-import 29 from tensorflow.python.tools import module_util as _module_util 30 ~\Anaconda3\envs\gpu\lib\site-packages\tensorflow\python\__init__.py in <module> 47 import numpy as np 48 ---> 49 from tensorflow.python import pywrap_tensorflow 50 51 # Protocol buffers ~\Anaconda3\envs\gpu\lib\site-packages\tensorflow\python\pywrap_tensorflow.py in <module> 28 # Perform pre-load sanity checks in order to produce a more actionable error 29 # than we get from an error during SWIG import. ---> 30 self_check.preload_check() 31 32 # pylint: disable=wildcard-import,g-import-not-at-top,unused-import,line-too-long ~\Anaconda3\envs\gpu\lib\site-packages\tensorflow\python\platform\self_check.py in preload_check() 80 "environment variable. Download and install CUDA %s from " 81 "this URL: https://developer.nvidia.com/cuda-90-download-archive" ---> 82 % (build_info.cudart_dll_name, build_info.cuda_version_number)) 83 84 if hasattr(build_info, "cudnn_dll_name") and hasattr( ImportError: Could not find 'cudart64_100.dll'. TensorFlow requires that this DLL be installed in a directory that is named in your %PATH% environment variable. Download and install CUDA 10.0 from this URL: https://developer.nvidia.com/cuda-90-download-archive

試してみたこと

Could not find 'cudart64_100.dll'.
とあったので,環境変数Pathに
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.0\bin\cudart64_100.dll
を新規で追加してみましたが,エラーは変わりませんでした
binファイルにcudart64_100.dllはあるので,どこで間違えているのかわかりません

補足情報

CUDA:10.0
cudnn;CUDAに対応したもの(それぞれのファイルに移動済みです)
Tensorflow_gpu-1.14.0

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

guest

回答1

0

自己解決

https://dev.infohub.cc/tensorflow2-alpha-gpu/
上記のサイトを参考にdllファイルを認識させると,最初はうまくいかなかったのですが,10分ほどたったのち,再度プログラムを動かすとうまく動きました.

投稿2019/07/02 09:03

Bonziri

総合スコア16

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.50%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問