提交 b3fa118b authored 作者: Andy Jiang's avatar Andy Jiang 提交者: Frederic

made compatible with Raspberry Pi 1

上级 87f8c5a1
......@@ -2003,7 +2003,7 @@ class GCC_compiler(Compiler):
# or 64 bit and compile accordingly. This step is ignored for ARM
# architectures in order to make Theano compatible with the Raspberry
# Pi, and Raspberry Pi 2.
if not any(['arm' in flag for flag in cxxflags]) and platform.machine() != 'armv7l':
if not any(['arm' in flag for flag in cxxflags]) and platform.machine() not in ['armv7l','armv6l']:
n_bits = local_bitwidth()
cxxflags.append('-m%d' % n_bits)
_logger.debug("Compiling for %s bit architecture", n_bits)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论