69

NVIDIAの公式サイトで提供されているサンプルプログラムを動かしてみました。同様のエラーメッセージが表示されるいくつかのプログラムを除いて、ほとんどのプログラムはスムーズに実行されました。どうすれば修正できますか?「MatrixMul」という名前のプログラムを実行した後に表示されるエラー メッセージのサンプルを次に示します。

注: Window7x64 OS にx32 と x64 の両方のNVIDIA CUDA Toolkit v5.0 をインストールしました。

'matrixMul.exe': Loaded 'C:\ProgramData\NVIDIA Corporation\CUDA Samples\v5.0\bin\win32\Debug\matrixMul.exe', Symbols loaded.
'matrixMul.exe': Loaded 'C:\Windows\SysWOW64\ntdll.dll', Cannot find or open the PDB file
'matrixMul.exe': Loaded 'C:\Windows\SysWOW64\kernel32.dll', Cannot find or open the PDB file
'matrixMul.exe': Loaded 'C:\Windows\SysWOW64\KernelBase.dll', Cannot find or open the PDB file
'matrixMul.exe': Loaded 'C:\Program Files (x86)\NVIDIA GPU Computing Toolkit\CUDA\v5.0\bin\cudart32_50_35.dll', Binary was not built with debug information.
'matrixMul.exe': Loaded 'C:\Windows\SysWOW64\apphelp.dll', Cannot find or open the PDB file
'matrixMul.exe': Loaded 'C:\Windows\AppPatch\AcLayers.dll', Cannot find or open the PDB file
'matrixMul.exe': Loaded 'C:\Windows\SysWOW64\sspicli.dll', Cannot find or open the PDB file
'matrixMul.exe': Loaded 'C:\Windows\SysWOW64\msvcrt.dll', Cannot find or open the PDB file
'matrixMul.exe': Loaded 'C:\Windows\SysWOW64\rpcrt4.dll', Cannot find or open the PDB file
'matrixMul.exe': Loaded 'C:\Windows\SysWOW64\cryptbase.dll', Cannot find or open the PDB file
'matrixMul.exe': Loaded 'C:\Windows\SysWOW64\sechost.dll', Cannot find or open the PDB file
'matrixMul.exe': Loaded 'C:\Windows\SysWOW64\user32.dll', Cannot find or open the PDB file
'matrixMul.exe': Loaded 'C:\Windows\SysWOW64\gdi32.dll', Cannot find or open the PDB file
'matrixMul.exe': Loaded 'C:\Windows\SysWOW64\lpk.dll', Cannot find or open the PDB file
'matrixMul.exe': Loaded 'C:\Windows\SysWOW64\usp10.dll', Cannot find or open the PDB file
'matrixMul.exe': Loaded 'C:\Windows\SysWOW64\advapi32.dll', Cannot find or open the PDB file
'matrixMul.exe': Loaded 'C:\Windows\SysWOW64\shell32.dll', Cannot find or open the PDB file
'matrixMul.exe': Loaded 'C:\Windows\SysWOW64\shlwapi.dll', Cannot find or open the PDB file
'matrixMul.exe': Loaded 'C:\Windows\SysWOW64\ole32.dll', Cannot find or open the PDB file
'matrixMul.exe': Loaded 'C:\Windows\SysWOW64\oleaut32.dll', Cannot find or open the PDB file
'matrixMul.exe': Loaded 'C:\Windows\SysWOW64\userenv.dll', Cannot find or open the PDB file
'matrixMul.exe': Loaded 'C:\Windows\SysWOW64\profapi.dll', Cannot find or open the PDB file
'matrixMul.exe': Loaded 'C:\Windows\SysWOW64\winspool.drv', Cannot find or open the PDB file
'matrixMul.exe': Loaded 'C:\Windows\SysWOW64\mpr.dll', Cannot find or open the PDB file
'matrixMul.exe': Loaded 'C:\Windows\SysWOW64\imm32.dll', Cannot find or open the PDB file
'matrixMul.exe': Loaded 'C:\Windows\SysWOW64\msctf.dll', Cannot find or open the PDB file
'matrixMul.exe': Loaded 'C:\Windows\SysWOW64\nvinit.dll', Cannot find or open the PDB file
'matrixMul.exe': Loaded 'C:\Windows\SysWOW64\nvcuda.dll', Binary was not built with debug information.
'matrixMul.exe': Loaded 'C:\Windows\SysWOW64\setupapi.dll', Cannot find or open the PDB file
'matrixMul.exe': Loaded 'C:\Windows\SysWOW64\cfgmgr32.dll', Cannot find or open the PDB file
'matrixMul.exe': Loaded 'C:\Windows\SysWOW64\devobj.dll', Cannot find or open the PDB file
'matrixMul.exe': Loaded 'C:\Windows\SysWOW64\dwmapi.dll', Cannot find or open the PDB file
'matrixMul.exe': Unloaded 'C:\Windows\SysWOW64\dwmapi.dll'
'matrixMul.exe': Loaded 'C:\Windows\SysWOW64\nvapi.dll', Cannot find or open the PDB file
'matrixMul.exe': Loaded 'C:\Windows\SysWOW64\version.dll', Cannot find or open the PDB file
'matrixMul.exe': Loaded 'C:\Windows\SysWOW64\wintrust.dll', Cannot find or open the PDB file
'matrixMul.exe': Loaded 'C:\Windows\SysWOW64\crypt32.dll', Cannot find or open the PDB file
'matrixMul.exe': Loaded 'C:\Windows\SysWOW64\msasn1.dll', Cannot find or open the PDB file
The thread 'Win32 Thread' (0x12fc) has exited with code 0 (0x0).
The thread 'Win32 Thread' (0x18a0) has exited with code 0 (0x0).
The program '[3104] matrixMul.exe: Native' has exited with code 0 (0x0)
4

6 に答える 6

20

そのメッセージが気になる場合は、Visual Studio でこの指示を適用するには、管理者権限で Visual Studio を実行する必要があります。

ツール - >オプション - >デバッグ - >シンボルを選択し、ボックス「Microsoft Symbol Servers」でチェックを選択し、すべてのモジュールをロードするようにマークしてから、すべてのシンボルをロードをクリックします。

それ以外はすべて Visual Studio が自動的に実行し、[出力] ウィンドウの [デバッグ] の下に "Native' has exited with code 0 (0x0)" というメッセージが表示されます。

于 2014-01-10T10:13:56.713 に答える
6
  1. [プロジェクト プロパティ] > [構成プロパティ] > [リンカ] > [デバッグ] タブで、[デバッグ情報の生成] の設定が [はい] になっているかどうかを確認してください。そうでない場合は、[はい] に変更してみてください。

  2. これらの特定の pdb (ntdll.dll、mscoree.dll、kernel32.dll など) は Windows API 用であり、単純なアプリには必要ありません。ただし、独自のコンパイル済みプロジェクトの pdb が見つからない場合は、 Project Properties > Configuration Properties > Debugging > Working Directory が Project Properties > Configuration Properties > General > Output Directory の値を使用していることを確認することをお勧めします。

  3. Visual c++ を「管理者として実行」モードで実行する必要があります。実行可能ファイルを右クリックし、「管理者として実行」をクリックします。

于 2013-07-15T12:52:33.270 に答える
3

私は CUDA/Visual Studio の初心者でもあり、いくつかのサンプルで同じ問題に遭遇しました。DEBUG-> Start Debugging を実行してから、繰り返しステップ オーバー (F10) を実行すると、出力ウィンドウが表示され、データが取り込まれます。通常の実行では、通常の完了ステータス 0x0 が返され (ご覧のとおり)、出力ウィンドウが閉じられます。

于 2013-12-10T17:13:21.380 に答える
0

これが Visual Studio で発生した場合は、プロジェクトをクリーンアップしてから再度実行してください。

ビルド --> クリーン ソリューション

実行 (または F5)

于 2016-03-23T04:08:23.193 に答える