提交 cbaf5cc0 authored 作者: Frédéric Bastien's avatar Frédéric Bastien

Merge pull request #1612 from vdumoulin/master

Add ARM architecture check for Raspberry Pi
...@@ -1711,10 +1711,13 @@ class GCC_compiler(object): ...@@ -1711,10 +1711,13 @@ class GCC_compiler(object):
# in the key of the compiled module, avoiding potential conflicts. # in the key of the compiled module, avoiding potential conflicts.
# Figure out whether the current Python executable is 32 # Figure out whether the current Python executable is 32
# or 64 bit and compile accordingly. # or 64 bit and compile accordingly. This step is ignored for ARM
n_bits = local_bitwidth() # architectures in order to make Theano compatible with the Raspberry
cxxflags.append('-m%d' % n_bits) # Pi.
_logger.debug("Compiling for %s bit architecture", n_bits) if any([not 'arm' in flag for flag in GCC_compiler.march_flags]):
n_bits = local_bitwidth()
cxxflags.append('-m%d' % n_bits)
_logger.debug("Compiling for %s bit architecture", n_bits)
if sys.platform != 'win32': if sys.platform != 'win32':
# Under Windows it looks like fPIC is useless. Compiler warning: # Under Windows it looks like fPIC is useless. Compiler warning:
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论