@@ -72,34 +72,6 @@ function install_buildessentials {
7272 touch buildessentials-stamp
7373}
7474
75- function build_adios1 {
76- if [ -e adios1-stamp ]; then return ; fi
77-
78- curl -k -sLo adios-1.13.1.tar.gz \
79- https://users.nccs.gov/~pnorbert/adios-1.13.1.tar.gz
80- file adios* .tar.gz
81- tar -xzf adios* .tar.gz
82- rm adios* .tar.gz
83- cd adios-*
84-
85- # Cross-Compile hints for autotools based builds
86- HOST_ARG=" "
87- if [[ " ${CMAKE_OSX_ARCHITECTURES-} " == " arm64" ]]; then
88- HOST_ARG=" --host=aarch64-apple-darwin"
89- fi
90-
91- ./configure --enable-static --disable-shared --disable-fortran --without-mpi ${HOST_ARG} --prefix=${BUILD_PREFIX} --with-blosc=/usr
92- make -j${CPU_COUNT}
93- make install
94- cd -
95-
96- # note: for universal binaries on macOS
97- # https://developer.apple.com/documentation/apple-silicon/building-a-universal-macos-binary
98- # lipo -create -output universal_app x86_app arm_app
99-
100- touch adios1-stamp
101- }
102-
10375function build_adios2 {
10476 if [ -e adios2-stamp ]; then return ; fi
10577
@@ -153,52 +125,6 @@ function build_adios2 {
153125 touch adios2-stamp
154126}
155127
156- function build_blosc {
157- if [ -e blosc-stamp ]; then return ; fi
158-
159- curl -sLo c-blosc-1.21.0.tar.gz \
160- https://github.com/Blosc/c-blosc/archive/v1.21.0.tar.gz
161- file c-blosc* .tar.gz
162- tar -xzf c-blosc* .tar.gz
163- rm c-blosc* .tar.gz
164-
165- # Patch PThread Propagation
166- curl -sLo blosc-pthread.patch \
167- https://patch-diff.githubusercontent.com/raw/Blosc/c-blosc/pull/318.patch
168- python3 -m patch -p 1 -d c-blosc-1.21.0 blosc-pthread.patch
169-
170- if [[ " ${CMAKE_OSX_ARCHITECTURES-} " == * " arm64" * ]]; then
171- # SSE2 support
172- # https://github.com/Blosc/c-blosc/issues/334
173- # error: SSE2 is not supported by the target architecture/platform and/or this compiler.
174- local architecture_specific_flags=(" -DDEACTIVATE_SSE2=ON" )
175- else
176- local architecture_specific_flags=(" -DDEACTIVATE_SSE2=OFF" " -DDEACTIVATE_AVX512=ON" )
177- fi
178-
179- mkdir build-blosc
180- cd build-blosc
181- PY_BIN=$( which python3)
182- CMAKE_BIN=" $( ${PY_BIN} -m pip show cmake 2> /dev/null | grep Location | cut -d' ' -f2) /cmake/data/bin/"
183- PATH=${CMAKE_BIN} :${PATH} cmake \
184- -DDEACTIVATE_SNAPPY=ON \
185- " ${architecture_specific_flags[@]} " \
186- -DBUILD_SHARED=OFF \
187- -DBUILD_TESTS=OFF \
188- -DBUILD_BENCHMARKS=OFF \
189- -DCMAKE_VERBOSE_MAKEFILE=ON \
190- -DCMAKE_INSTALL_PREFIX=${BUILD_PREFIX} \
191- -DZLIB_USE_STATIC_LIBS=ON \
192- ../c-blosc-*
193- make -j${CPU_COUNT}
194- make install
195- cd -
196-
197- rm -rf build-blosc
198-
199- touch blosc-stamp
200- }
201-
202128function build_blosc2 {
203129 if [ -e blosc-stamp2 ]; then return ; fi
204130
379305install_buildessentials
380306build_zlib
381307build_zfp
382- if [[ " $( uname -m) " != " ppc64le" ]]; then
383- # builds too long for Travis-CI
384- build_blosc
385- fi
386308build_blosc2
387309build_hdf5
388- if [[ " ${CMAKE_OSX_ARCHITECTURES-} " != " arm64" && " $( uname -m) " != " ppc64le" ]]; then
389- # macOS: skip ADIOS1 build for M1
390- # Linux: with ADIOS2 also enabled, this builds too long for Travis-CI
391- build_adios1
392- fi
393310build_adios2
0 commit comments