V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
pineapplex
V2EX  ›  TensorFlow

请教为何在虚拟机 VirualBox 中运行的 Ubuntu20,没法加载 tensorflow。

  •  
  •   pineapplex · 2021-01-13 20:23:09 +08:00 · 2118 次点击
    这是一个创建于 1191 天前的主题,其中的信息可能已经有所发展或是发生改变。
    我的 tensorflow 在 WIN10 的系统中已经能够正常运行,并且装了 cuda 和 cudnn,能够正常使用 GPU 了。
    我突发奇想,想在自己的虚拟机 Ubuntu 上也开个 tf,说不定可以尝试一下分布式?结果是好不容易安上 tensorflow 后,无法运行。
    当 import tensorflow 后,直接提示
    F tensorflow/core/platform/cpu_feature_guard.cc:38] The TensorFlow library was compiled to use FMA instructions, but these aren't available on your machine.
    不知道问题在哪里……
    1 条回复    2023-01-13 22:42:10 +08:00
    yijiangchengming
        1
    yijiangchengming  
       2023-01-13 22:42:10 +08:00
    VirualBox 虚拟机不支持显卡,既不支持直通也不支持 VGPU,是 CPU 模拟的。如果要使用 Linux 的话,WSL2 可以,并且 WSL2 的 docker 里面也可以。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   980 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 20:18 · PVG 04:18 · LAX 13:18 · JFK 16:18
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.