2501_92319143 2025-06-04 16:05 采纳率: 0%
浏览 874

5060显卡cuda和pytorch不兼容

2025-06-04 15:22:23.1642597 [W:onnxruntime:, transformer_memcpy.cc:74 onnxruntime::MemcpyTransformer::ApplyImpl] 8 Memcpy nodes are added to the graph main_graph for CUDAExecutionProvider. It might have negative impact on performance (including unable to run CUDA graph). Set session_options.log_severity_level=1 to see the detail logs before this message.
2025-06-04 15:22:23.1723120 [W:onnxruntime:, session_state.cc:1168 onnxruntime::VerifyEachNodeIsAssignedToAnEp] Some nodes were not assigned to the preferred execution providers which may or may not have an negative impact on performance. e.g. ORT explicitly assigns shape related ops to CPU to improve perf.
2025-06-04 15:22:23.1757246 [W:onnxruntime:, session_state.cc:1170 onnxruntime::VerifyEachNodeIsAssignedToAnEp] Rerunning with verbose output on a non-minimal build will show node assignments.
D:\AI\AI\py311\Lib\site-packages\torch\cuda_init_.py:230: UserWarning:
NVIDIA GeForce RTX 5060 Ti with CUDA capability sm_120 is not compatible with the current PyTorch installation.
The current PyTorch install supports CUDA capabilities sm50 60 61 70 75 80 86 90.
If you want to use the NVIDIA GeForce RTX 5060 Ti GPU with PyTorch, please check the instructions at https://pytorch.org/get-started/locally/
我下载的软件没办法使用 这是软件代码提示 有大锅懂怎么解决的吗

  • 写回答

7条回答 默认 最新

  • 码农阿豪@新空间 新星创作者: 前端开发技术领域 2025-06-04 16:17
    关注
    让阿豪来帮你解答,本回答参考chatgpt3.5编写提供,如果还有疑问可以评论或留言
    问题描述:出现软件提示,提示当前PyTorch安装不支持NVIDIA GeForce RTX 5060 Ti GPU,导致无法正常使用软件。 解决方法:
    1. 检查CUDA和PyTorch的兼容性:根据软件提示信息,当前PyTorch版本支持的CUDA能力为sm50、60、61、70、75、80、86、90,而NVIDIA GeForce RTX 5060 Ti的CUDA能力为sm_120,不兼容。需要安装支持sm_120的PyTorch版本。
    2. 更新PyTorch版本:通过访问PyTorch官方网站(https://pytorch.org/get-started/locally/),查找支持NVIDIA GeForce RTX 5060 Ti GPU的PyTorch版本,并按照指示进行安装。
    3. 更新CUDA驱动:确保安装最新的NVIDIA CUDA驱动程序,以确保与支持的CUDA能力兼容。
    4. 检查GPU驱动:确保安装最新版本的GPU驱动程序,以获得最佳性能和兼容性。 示例代码:
    import torch
    # 检查当前PyTorch版本支持的CUDA能力
    print(torch.version.cuda)
    # 检查GPU信息
    print(torch.cuda.get_device_name(0))
    

    希望以上解答对您有帮助,如有任何疑问请随时提出。

    评论

报告相同问题?

问题事件

  • 创建了问题 6月4日