Nvidia DriverとCUDAをインストールしたのですが、サンプルファイルであるvolumeRenderが動きませんでした。
以下エラーメッセージです。
~/NVIDIA_CUDA-10.0_Samples/bin/x86_64/linux/release$ ./volumeRender CUDA 3D Volume Render Starting... GPU Device 0: "GeForce GTX 1080" with compute capability 6.1 Read '../../../../2_Graphics/volumeRender/data/Bucky.raw', 32768 bytes Press '+' and '-' to change density (0.01 increments) ']' and '[' to change brightness ';' and ''' to modify transfer function offset '.' and ',' to modify transfer function scale CUDA error at volumeRender.cpp:436 code=30(cudaErrorUnknown) "cudaGraphicsGLRegisterBuffer(&cuda_pbo_resource, pbo, cudaGraphicsMapFlagsWriteDiscard)"
ちなみに以下のようにnvidia-smiでドライバーCUDAのインストールは確認しましたが、正常に
インストールされているようでした。
nvidia-smi Mon Aug 19 18:41:28 2019 +-----------------------------------------------------------------------------+ | NVIDIA-SMI 430.40 Driver Version: 430.40 CUDA Version: 10.1 | |-------------------------------+----------------------+----------------------+ | GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC | | Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. | |===============================+======================+======================| | 0 GeForce GTX 1080 Off | 00000000:01:00.0 Off | N/A | | 27% 34C P8 6W / 180W | 0MiB / 8119MiB | 0% Default | +-------------------------------+----------------------+----------------------+ +-----------------------------------------------------------------------------+ | Processes: GPU Memory | | GPU PID Type Process name Usage | |=============================================================================| | No running processes found | +-----------------------------------------------------------------------------+
またbandwidthTestはPassしているようでした。
~/NVIDIA_CUDA-10.0_Samples/bin/x86_64/linux/release$ sudo ./bandwidthTest [CUDA Bandwidth Test] - Starting... Running on... Device 0: GeForce GTX 1080 Quick Mode Host to Device Bandwidth, 1 Device(s) PINNED Memory Transfers Transfer Size (Bytes) Bandwidth(MB/s) 33554432 12810.5 Device to Host Bandwidth, 1 Device(s) PINNED Memory Transfers Transfer Size (Bytes) Bandwidth(MB/s) 33554432 12207.8 Device to Device Bandwidth, 1 Device(s) PINNED Memory Transfers Transfer Size (Bytes) Bandwidth(MB/s) 33554432 231803.0 Result = PASS NOTE: The CUDA Samples are not meant for performance measurements. Results may vary when GPU Boost is enabled.
CUDAを正常に動かすようにはどうしたらよいでしょうか?ちなみに別のプログラム(pytorch)でもCUDAを呼び出したところRuntimeErrorを返されました。
あなたの回答
tips
プレビュー