Skip to content

Commit

Permalink
Adding -lzstd in sz_lib flags.
Browse files Browse the repository at this point in the history
  • Loading branch information
orioltinto committed Oct 27, 2022
1 parent 2a4e9ea commit 356e7b5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -798,22 +798,22 @@ def prefix(directory, files):
'cflags': ['-DBIT_STREAM_WORD_TYPE=uint8'],
})


# sz and sz plugin
# Trying to add sz and its hdf5 plugin
sz_dir = os.path.join("src", "SZ", "sz")
sz_sources = glob(os.path.join(sz_dir, "src", "*.c"))
sz_include_dirs = [os.path.join(sz_dir, "include"), sz_dir]
sz_lib = ("sz", {
"sources": sz_sources,
"include_dirs": sz_include_dirs,
"cflags": ['-DBUILD_HDF5_FILTER:BOOL=ON'],
})
"cflags": ["-lzstd"],
})

# "cflags": ['-DBUILD_HDF5_FILTER:BOOL=ON'],


h5zsz_dir = os.path.join("src","SZ","hdf5-filter","H5Z-SZ")
sources = glob(h5zsz_dir + "/src/"+ "*.c")
h5zsz_dir = os.path.join("src", "SZ", "hdf5-filter", "H5Z-SZ")
sources = glob(h5zsz_dir + "/src/" + "*.c")
depends = glob(h5zsz_dir + "/src/" + "*.h")
include_dirs = [h5zsz_dir]
include_dirs = [h5zsz_dir, sz_dir]
extra_compile_args = ['-O3', '-ffast-math', '-std=c99', '-fopenmp']
extra_compile_args += ['/Ox', '/fp:fast', '/openmp']
Expand Down
2 changes: 1 addition & 1 deletion src/hdf5plugin/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
"""Zstandard filter ID"""

SZ_ID = 32017
"""FCIDECOMP filter ID"""
"""SZ filter ID"""


FCIDECOMP_ID = 32018
Expand Down

0 comments on commit 356e7b5

Please sign in to comment.