1.问题描述
运行的代码设计pycuda,会调用nvcc,确定已经安装cuda toolkit,在terminal中云运行
nvcc -V
能得到想到的结果:
但是在 pycharm中运行代码时提示:
FileNotFoundError: [Errno 2] No such file or directory: 'nvcc'
2. 解决办法
在pycharm中添加cuda toolkit路径 (像在~/.bashrc中那样)
1.问题描述
运行的代码设计pycuda,会调用nvcc,确定已经安装cuda toolkit,在terminal中云运行
nvcc -V
能得到想到的结果:
但是在 pycharm中运行代码时提示:
FileNotFoundError: [Errno 2] No such file or directory: 'nvcc'
2. 解决办法
在pycharm中添加cuda toolkit路径 (像在~/.bashrc中那样)