Skip to content

Commit

Permalink
add altivec support
Browse files Browse the repository at this point in the history
  • Loading branch information
t20100 committed Dec 14, 2022
1 parent ad42296 commit 1f9a9e8
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -789,7 +789,7 @@ def get_blosc2_plugin():
include_dirs = [blosc2_dir, f'{blosc2_dir}/blosc', f'{blosc2_dir}/include']
define_macros = []

# TODO enable altivec/neon
# TODO enable neon
sse2_kwargs = {
'sources': glob(f'{blosc2_dir}/blosc/*-sse2.c'),
'define_macros': [('SHUFFLE_SSE2_ENABLED', 1)],
Expand All @@ -800,6 +800,11 @@ def get_blosc2_plugin():
'define_macros': [('SHUFFLE_AVX2_ENABLED', 1)],
}

if platform.machine() == "ppc64le": # altivec
sources += glob(f'{blosc2_dir}/blosc/*-altivec.c')
define_macros += [('SHUFFLE_ALTIVEC_ENABLED', 1)]


# compression libs
# lz4
include_dirs += get_lz4_clib('include_dirs')
Expand Down

0 comments on commit 1f9a9e8

Please sign in to comment.