pointnet2_ops安装过错报错

 ERROR: Failed building wheel for pointnet2_ops

/CUDA kernel failed : no kernel image is available for execution on the device

是同一个,巨大坑

网上说法把3.7+PTX去掉,的确编译成功,但没有解决根本,后面可能cuda无法使用

出现错误CUDA kernel failed : no kernel image is available for execution on the device

网上说法Comment out all "CUDA_CHECK_ERRORS();" in .cu files in "_ext-src/src/" in PointNet2 project.

最终没有用

解决方法:

此处cuda 环境变量 TORCH_CUDA_ARCH_LIST需要根据自身环境变量设置,因cuda更新,最新的没有写上去,调用命令查看 我是cuda12.1,torch2.2

python -c "import torch; print(torch.cuda.get_device_capability())"

输出8,9 则添加8.9到TORCH_CUDA_ARCH_LIST,会报错的去掉3.7+PTX

最终编译成功,cuda也可以使用

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

@nullptr

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值