Skip to content

Commit

Permalink
Merge pull request #321 from t20100/fix-blosc2-ppc64le
Browse files Browse the repository at this point in the history
Fixed `c-blosc2` compilation issue on `ppc64le`
  • Loading branch information
t20100 authored Aug 29, 2024
2 parents 8252d67 + 7a79d5a commit 081095d
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -940,20 +940,21 @@ def get_blosc2_plugin():
f'{blosc2_dir}/include',
f'{blosc2_dir}/plugins/codecs/zfp/include',
]
define_macros = [
('HAVE_PLUGINS', 1),
('SHUFFLE_SSE2_ENABLED', 1),
('SHUFFLE_AVX2_ENABLED', 1),
('SHUFFLE_AVX512_ENABLED', 1),
('SHUFFLE_NEON_ENABLED', 1),
('SHUFFLE_ALTIVEC_ENABLED', 1),
]

define_macros = [('HAVE_PLUGINS', 1)]
if platform.machine() == 'ppc64le':
define_macros.append(('SHUFFLE_ALTIVEC_ENABLED', 1))
define_macros.append(('NO_WARN_X86_INTRINSICS', None))
else:
define_macros.append(('SHUFFLE_SSE2_ENABLED', 1))
define_macros.append(('SHUFFLE_AVX2_ENABLED', 1))
define_macros.append(('SHUFFLE_AVX512_ENABLED', 1))
define_macros.append(('SHUFFLE_NEON_ENABLED', 1))

extra_compile_args = []
extra_link_args = []
libraries = []

if platform.machine() == 'ppc64le':
define_macros.append(('NO_WARN_X86_INTRINSICS', None))
if HostConfig.ARCH == 'ARM_8':
extra_compile_args += ['-flax-vector-conversions']
if HostConfig.ARCH == 'ARM_7':
Expand Down

0 comments on commit 081095d

Please sign in to comment.