Skip to content
Snippets Groups Projects

ARM for linux

Merged Helen Schottenhamml requested to merge mr_arm_for_linux into master
Compare and
2 files
+ 8
5
Preferences
Compare changes
Files
2
@@ -43,7 +43,8 @@ def get_supported_instruction_sets():
@@ -43,7 +43,8 @@ def get_supported_instruction_sets():
return _cache.copy()
return _cache.copy()
if 'PYSTENCILS_SIMD' in os.environ:
if 'PYSTENCILS_SIMD' in os.environ:
return os.environ['PYSTENCILS_SIMD'].split(',')
return os.environ['PYSTENCILS_SIMD'].split(',')
if platform.system() == 'Darwin' and platform.machine() == 'arm64': # not supported by cpuinfo
if (platform.system() == 'Darwin' or platform.system() == 'Linux') and platform.machine() == 'arm64':
 
# not supported by cpuinfo
return ['neon']
return ['neon']
elif platform.system() == 'Linux' and platform.machine().startswith('riscv'): # not supported by cpuinfo
elif platform.system() == 'Linux' and platform.machine().startswith('riscv'): # not supported by cpuinfo
libc = CDLL('libc.so.6')
libc = CDLL('libc.so.6')