去年装完gprmax后一直没用,今年再打开发现 无法使用gpu加速了。报错如图
gprmax 3.0 安装、GPU配置与cmd、pycharm(或jupyter)运行gprmax详细教程-优快云博客
参考上贴评论区各位大佬说法重装了gprmax,cuda问题还是没得到解决,于是去GitHub上搜了一下,发现问题可能出在环境上(下面帖子里的 beflowerh以及提出了解决方案,但本人实在水平有限,不知道cl文件在哪),按照下帖评论给出的demo进行测试,不能完成pycuda示例
demo代码(可以复制到pycharm试试):
# Sample source code from the Tutorial Introduction in the documentation.
import pycuda.driver as cuda
import pycuda.autoinit # noqa
from pycuda.compiler import SourceModule
import numpy
a = numpy.random.ran