小石头19 2022-08-06 18:22 采纳率: 40%
浏览 36
已结题

测试tensorflow时gpu启动没有结果,如何解决?(语言-python)

问题遇到的现象和发生背景

在测试tensorflow时gpu启动没有结果,具体方法见https://blog.csdn.net/Netceor/article/details/119821194
程序一直在运行但是没有想要的结果,之后就手动停止了,具体结果和图片如下所示,请问各位这个问题怎么解决?

问题相关代码
import tensorflow as tf
print(tf.test.is_gpu_available())
运行结果及报错内容

D:\ANACONDA\envs\dptensorflow\python.exe "D:\Python learn————\deeplearning\tef.py"
2022-08-06 18:07:39.390587: I tensorflow/core/platform/cpu_feature_guard.cc:142] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX AVX2
2022-08-06 18:07:39.395244: I tensorflow/stream_executor/platform/default/dso_loader.cc:42] Successfully opened dynamic library nvcuda.dll
2022-08-06 18:07:39.417963: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1640] Found device 0 with properties:
name: NVIDIA GeForce RTX 3060 Laptop GPU major: 8 minor: 6 memoryClockRate(GHz): 1.425
pciBusID: 0000:01:00.0
2022-08-06 18:07:39.418168: I tensorflow/stream_executor/platform/default/dlopen_checker_stub.cc:25] GPU libraries are statically linked, skip dlopen check.
2022-08-06 18:07:39.418318: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1763] Adding visible gpu devices: 0

img

  • 写回答

2条回答 默认 最新

  • kakaccys 2022-08-06 18:39
    关注

    看起来你没有装cuda,cudnn这些包吧,运行时理论上cuda,cudnn如果被加载是会打印的。

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

问题事件

  • 系统已结题 8月30日
  • 已采纳回答 8月22日
  • 创建了问题 8月6日

悬赏问题

  • ¥15 目详情-五一模拟赛详情页
  • ¥15 有了解d3和topogram.js库的吗?有偿请教
  • ¥100 任意维数的K均值聚类
  • ¥15 stamps做sbas-insar,时序沉降图怎么画
  • ¥15 买了个传感器,根据商家发的代码和步骤使用但是代码报错了不会改,有没有人可以看看
  • ¥15 关于#Java#的问题,如何解决?
  • ¥15 加热介质是液体,换热器壳侧导热系数和总的导热系数怎么算
  • ¥100 嵌入式系统基于PIC16F882和热敏电阻的数字温度计
  • ¥15 cmd cl 0x000007b
  • ¥20 BAPI_PR_CHANGE how to add account assignment information for service line