Skip to content
Permalink
Browse files

Add ARM architecture check for Raspberry Pi

  • Loading branch information...
vdumoulin committed Nov 16, 2013
1 parent 85db9b9 commit 70e761ec87038a457a61ba76a6b338f0a13674b7
Showing with 7 additions and 4 deletions.
  1. +7 −4 theano/gof/cmodule.py
@@ -1711,10 +1711,13 @@ def join_options(init_part):
# in the key of the compiled module, avoiding potential conflicts.

# Figure out whether the current Python executable is 32
# or 64 bit and compile accordingly.
n_bits = local_bitwidth()
cxxflags.append('-m%d' % n_bits)
_logger.debug("Compiling for %s bit architecture", n_bits)
# or 64 bit and compile accordingly. This step is ignored for ARM
# architectures in order to make Theano compatible with the Raspberry
# Pi.
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':
# Under Windows it looks like fPIC is useless. Compiler warning:

0 comments on commit 70e761e

Please sign in to comment.
You can’t perform that action at this time.