V2EX › TensorFlow
请教为何在虚拟机 VirualBox 中运行的 Ubuntu20,没法加载 tensorflow。
By pineapplex at 2021 年 1 月 13 日 · 4073 次点击我的 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.
不知道问题在哪里……
我突发奇想,想在自己的虚拟机 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
|
1
yijiangchengming 2023 年 1 月 13 日
VirualBox 虚拟机不支持显卡,既不支持直通也不支持 VGPU,是 CPU 模拟的。如果要使用 Linux 的话,WSL2 可以,并且 WSL2 的 docker 里面也可以。
|