Skip to content
Snippets Groups Projects

Add CI job for non-x86 vectorization

Merged Michael Kuron requested to merge qemu into master
3 files
+ 49
1
Compare changes
  • Side-by-side
  • Inline
Files
3
import math
import math
 
import os
import platform
import platform
from ctypes import CDLL
from ctypes import CDLL
@@ -25,6 +26,8 @@ def get_supported_instruction_sets():
@@ -25,6 +26,8 @@ def get_supported_instruction_sets():
global _cache
global _cache
if _cache is not None:
if _cache is not None:
return _cache.copy()
return _cache.copy()
 
if 'PYSTENCILS_SIMD' in os.environ:
 
return os.environ['PYSTENCILS_SIMD'].split(',')
if platform.system() == 'Darwin' and platform.machine() == 'arm64': # not supported by cpuinfo
if platform.system() == 'Darwin' and platform.machine() == 'arm64': # not supported by cpuinfo
return ['neon']
return ['neon']
elif platform.machine().startswith('ppc64'): # no flags reported by cpuinfo
elif platform.machine().startswith('ppc64'): # no flags reported by cpuinfo
Loading