我正在尝试调试 CUDA 程序,但是当我gdb
像这样启动时:
$ gdb -i=mi <program name>
$ r <program arguments>
我越来越:
/home/wvxvw/Projects/cuda/exercise-1-udacity/cs344/HW2/hw:
error while loading shared libraries: libcudart.so.5.0:
cannot open shared object file: No such file or directory
Process gdb-inferior killed
(为便于阅读而格式化)
(我正在使用 gdb 运行M-xgdb
)如果这很重要,那么 CUDA 库在.bashrc
export PATH="/usr/local/cuda/bin:$PATH"
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/usr/local/cuda/lib64"