linux - 如何为我的 AMD Linux 系统构建 Tensorflow?
问题描述
我最近在我的系统上安装了 Tensorflow。拟合模型后,我在 Jupyter Notebook 终端中收到此错误:
This TensorFlow binary is optimized with oneAPI Deep Neural Network Library (oneDNN)to use the following CPU instructions in performance-critical operations: AVX2 FMA
To enable them in other operations, rebuild TensorFlow with the appropriate compiler flags.
我读到我应该为我的系统构建 Tensorflow,但我不知道如何去做。我需要设置什么样的设置?我需要什么编译器标志?这是我的设置:
显卡:AMD RX 5700XT
CPU:AMD锐龙9 3900X
内存:64GB DDR4
操作系统:Ubuntu 20.04
有人可以就如何为我的系统构建 TensorFlow 提供建议吗?
解决方案
大多数深度学习和机器学习框架和库都使用 NVIDIA CUDA 进行 GPU 处理,我们需要选择 NVIDIA 显卡。
注意虽然 Amd 有一些出色的显卡型号,但它们对 ML 任务的兼容性和支持仍处于试验阶段。所以我们需要坚持使用 NViDia。
AMD 为 AMD GPU 提供了启用 ROCm 的 TensorFlow 库。它基于 ROCm 软件堆栈。要了解有关此库的更多信息:MIOpen - ROCm。
基于这些因素,可以推荐以下显卡系列: GeForce 10 系列 GeForce 16 系列。GeForce 20 系列。GeForce 30 系列
推荐阅读
- python - 如何从是和否答案中添加分数?
- azure - 如何在 Mac 上本地运行计时器触发的 Azure Functions?
- python - 如何从文本文件中提取数字并执行模运算?
- python - 数据框_替换/ Python
- python - 调整图像大小 discord.py
- apache-pig - Apache Pig 中的 IN 运算符
- r - 如何将列联表(计数)转换为 R 中 GLM 的个人
- css - Material UI - 是否可以在表格分页操作中禁用 labelDisplayedRows?
- c++ - 复变量函数的自动微分
- pyspark - 基于关联 2 行或更多行生成新列值