首页 > 解决方案 > 如何检查 tensorflow 是否可以在我的系统上运行,例如是否找到了所有支持的硬件,如 avr 设备

问题描述

编译 tensorflow C++ 框架时出现错误。但我得到错误。在搜索错误后,我发现 tensorflow 取决于我可能/可能没有的 AVR 设备。这是错误

ERROR: /root/.cache/bazel/_bazel_root/01d0d1781e05f68005abbf38d8bf5d12/external/llvm-project/mlir/BUILD:151:18: TdGenerate external/llvm-project/mlir/include/mlir/IR/BuiltinAttributes.cpp.inc failed (Illegal instruction): mlir-tblgen failed: error executing command bazel-out/k8-opt-exec-50AE0418/bin/external/llvm-project/mlir/mlir-tblgen --gen-attrdef-defs external/llvm-project/mlir/include/mlir/IR/BuiltinAttributes.td -I external/llvm-project/mlir/include -I ... (remaining 11 argument(s) skipped)
PLEASE submit a bug report to  and include the crash backtrace.
Stack dump:
0.  Program arguments: bazel-out/k8-opt-exec-50AE0418/bin/external/llvm-project/mlir/mlir-tblgen --gen-attrdef-defs external/llvm-project/mlir/include/mlir/IR/BuiltinAttributes.td -I external/llvm-project/mlir/include -I bazel-out/k8-opt/bin/external/llvm-project/mlir/include -I external/llvm-project/ -I bazel-out/k8-opt/bin/external/llvm-project/ -I external/llvm-project/mlir/include/mlir/IR -I bazel-out/k8-opt/bin/external/llvm-project/mlir/include/mlir/IR -o bazel-out/k8-opt/bin/external/llvm-project/mlir/include/mlir/IR/BuiltinAttributes.cpp.inc
INFO: Elapsed time: 1223.182s, Critical Path: 74.35s
INFO: 2792 processes: 165 internal, 2627 local.
FAILED: Build did NOT complete successfully
make[2]: *** [CMakeFiles/tensorflow_base.dir/build.make:137: tensorflow-stamp/tensorflow_base-build] Error 1
make[1]: *** [CMakeFiles/Makefile2:95: CMakeFiles/tensorflow_base.dir/all] Error 2
make: *** [Makefile:149: all] Error 2

所以我想知道我是否正确理解了错误?如果不是那么可能是这个错误的原因,如何解决它

如果是,那么如何在 Ubuntu 中检查我的系统是否支持 AVR,就像它拥有所有硬件或其他必需的东西一样

谢谢

为了编译,我正在查看本教程https://reposhub.com/python/deep-learning/FloopCZ-tensorflow_cc.html

我的 lscpu 命令输出

Architecture:                    x86_64
CPU op-mode(s):                  32-bit, 64-bit
Byte Order:                      Little Endian
Address sizes:                   36 bits physical, 48 bits virtual
CPU(s):                          4
On-line CPU(s) list:             0-3
Thread(s) per core:              1
Core(s) per socket:              4
Socket(s):                       1
NUMA node(s):                    1
Vendor ID:                       GenuineIntel
CPU family:                      6
Model:                           42
Model name:                      Intel(R) Core(TM) i5-2500 CPU @ 3.30GHz
Stepping:                        7
CPU MHz:                         1600.000
CPU max MHz:                     3700.0000
CPU min MHz:                     1600.0000
BogoMIPS:                        6585.31
L1d cache:                       128 KiB
L1i cache:                       128 KiB
L2 cache:                        1 MiB
L3 cache:                        6 MiB
NUMA node0 CPU(s):               0-3
Vulnerability Itlb multihit:     KVM: Mitigation: VMX unsupported
Vulnerability L1tf:              Mitigation; PTE Inversion
Vulnerability Mds:               Mitigation; Clear CPU buffers; SMT disabled
Vulnerability Meltdown:          Mitigation; PTI
Vulnerability Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl and seccomp
Vulnerability Spectre v1:        Mitigation; usercopy/swapgs barriers and __user pointer sanitization
Vulnerability Spectre v2:        Mitigation; Full generic retpoline, IBPB conditional, IBRS_FW, STIBP disabled, 
                                 RSB filling
Vulnerability Srbds:             Not affected
Vulnerability Tsx async abort:   Not affected
Flags:                           fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush
                                  dts acpi mmx fxsr sse sse2 ht tm pbe syscall nx rdtscp lm constant_tsc arch_pe
                                 rfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf pni pclmulq
                                 dq dtes64 monitor ds_cpl smx est tm2 ssse3 cx16 xtpr pdcm pcid sse4_1 sse4_2 x2
                                 apic popcnt tsc_deadline_timer aes xsave avx lahf_lm pti ssbd ibrs ibpb stibp x
                                 saveopt dtherm ida arat pln pts md_clear flush_l1d

标签: c++tensorflowmakefilecompiler-errors

解决方案


推荐阅读