gpt4 book ai didi

tensorflow - NVIDIA-SMI 失败,因为它无法与 NVIDIA 驱动程序通信。确保安装并运行了最新的 NVIDIA 驱动程序。为什么?

转载 作者:行者123 更新时间:2023-12-03 23:26:53 26 4
gpt4 key购买 nike

我正在尝试在 Google Colab 上运行 stylegan2,但在我的 Drive 上运行所有文件,并避免使用 !git clone 从 github of stylegan2
这是我在特定单元格上的代码:

    %tensorflow_version 1.x
%cd /content/drive/My Drive/stylegan2-master/
!nvcc test_nvcc.cu -o test_nvcc -run
print('Tensorflow version: {}'.format(tf.__version__) )
!nvidia-smi -L
print('GPU Identified at: {}'.format(tf.test.gpu_device_name()))
结果:
/内容/驱动器/我的驱动器/stylegan2-master
CPU 打招呼。
cudaErrorNoDevice:未检测到支持 CUDA 的设备
Tensorflow 版本:1.15.2
NVIDIA-SMI 失败,因为它无法与 NVIDIA 驱动程序通信。确保安装并运行了最新的 NVIDIA 驱动程序。
GPU 标识于:
为什么我无法获得 GPU?
我是该领域的新手,所以我可能会遗漏一些非常简单的东西,但仍然无法在互联网上找到答案。

最佳答案

您必须先在 Notebook 设置中启用 GPU。
您可以通过单击 Edit > Notebook settings 并选择 GPU 作为硬件加速器来轻松完成。
应该是这样。

关于tensorflow - NVIDIA-SMI 失败,因为它无法与 NVIDIA 驱动程序通信。确保安装并运行了最新的 NVIDIA 驱动程序。为什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62697331/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com