当前位置: 首页 > news >正文

【CuPy报错】NVRTC_ERROR_COMPILATION (6)找不到 ‘vector_types.h‘

cupy安装不要再使用pip install cupy了,
已经替换成基于版本安装了pip install cupy-cuda12x,详见cupy官网。

安装完成后,在import cupy之后报错,找不到 ‘vector_types.h’:

CompileException: /home/zoe/venv/lib/python3.10/site-packages/cupy/_core/include/cupy/_cuda/cuda-12.4/cuda_fp16.h(129): catastrophic error: cannot open source file "vector_types.h"#include "vector_types.h"^1 catastrophic error detected in the compilation of "/tmp/tmpj2ipaghf/e51b12159fb86782de36519c3d354c9de068af57.cubin.cu".
Compilation terminated.

你还需要安装一个CUDA的头文件,其中12.6可以替换成你用的cupy版本。

pip install "nvidia-cuda-runtime-cu12==12.6.*"

参考:
[1]: https://github.com/cupy/cupy/issues/8466
[2]: https://docs.cupy.dev/en/latest/install.html#cupy-always-raises-nvrtc-error-compilation-6


http://www.mrgr.cn/news/45862.html

相关文章:

  • 【RAG论文精读4】RAG论文综述1(2312.10997)-第2部分
  • 【3dgs】3DGS**(3D Geometry Sensing)与 **NeRF**(Neural Radiance Fields)对比
  • 系统架构设计师论文《论企业集成平台的技术与应用》精选试读
  • GPT-2 的 Transformer Block 设计与基础 Transformer 的比较
  • 考试宝 逆向 分析
  • MySQL 之权限与授权
  • 网络知识_001_浏览器输入域名
  • 【ShuQiHere】 K-means 聚类算法详解:公式、代码与实战
  • 代码随想录算法训练营| 669. 修剪二叉搜索树 、 108.将有序数组转换为二叉搜索树 、 538.把二叉搜索树转换为累加树
  • 陪伴系统,会成为女性向游戏的下一个争夺点吗?
  • 企业安全运行与维护(Enterprise Security Operation and Maintenance)
  • 【分布式微服务云原生】掌握Java分布式事务:2PC、3PC、TCC与Seata全解析
  • .[sspdlk00036@cock.li].mkp勒索病毒数据怎么处理|数据解密恢复
  • 微知-一个不错的rpm大全网站,临时找rpm包的好地方(rpmfind.net)
  • windows C++-实现 Future(一)
  • go-delve的使用
  • ubuntu下载gitee库源码
  • Adversarial Search
  • 独家揭秘!成为CSDN人工智能优质创作者:我的故事和心得
  • wildcard使用教程,解决绝大多数普通人的海外支付难题