V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
pineapplex

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

  •  
  •   pineapplex · Jan 13, 2021 · 4306 views
    This topic created in 1933 days ago, the information mentioned may be changed or developed.
    我的 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 replies    2023-01-13 22:42:10 +08:00
    yijiangchengming
        1
    yijiangchengming  
       Jan 13, 2023
    VirualBox 虚拟机不支持显卡,既不支持直通也不支持 VGPU,是 CPU 模拟的。如果要使用 Linux 的话,WSL2 可以,并且 WSL2 的 docker 里面也可以。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2397 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 36ms · UTC 16:00 · PVG 00:00 · LAX 09:00 · JFK 12:00
    ♥ Do have faith in what you're doing.