From f1e4cf9c341f99bbf8afe117858f0b1e0b64179d Mon Sep 17 00:00:00 2001 From: neurolabusc Date: Thu, 13 Feb 2020 11:31:02 -0500 Subject: [PATCH] Experimental Intel zlib support --- README.md | 9 +++++++++ SuperBuild/External-INTEL-ZLIB.cmake | 2 ++ 2 files changed, 11 insertions(+) diff --git a/README.md b/README.md index 48d769a..c7a9162 100755 --- a/README.md +++ b/README.md @@ -28,6 +28,15 @@ cmake -DZLIB_IMPLEMENTATION=ng .. make ``` +On the other hand, you can build for [ZLIB with Intel Integrated Performance Primitives](https://software.intel.com/en-us/articles/how-to-use-zlib-with-intel-ipp-optimization): + +``` +git clone https://github.com/neurolabusc/pigz.git +cd pigz +mkdir build && cd build +cmake -DZLIB_IMPLEMENTATION=Intel .. +make +``` Finally, you can build for your system zlib, which will likely provide the poorest performance: diff --git a/SuperBuild/External-INTEL-ZLIB.cmake b/SuperBuild/External-INTEL-ZLIB.cmake index bbe505c..e0abfe3 100644 --- a/SuperBuild/External-INTEL-ZLIB.cmake +++ b/SuperBuild/External-INTEL-ZLIB.cmake @@ -9,6 +9,8 @@ ExternalProject_Add(zlib -Wno-dev -DCMAKE_BUILD_TYPE:STRING=${CMAKE_BUILD_TYPE} -DCMAKE_INSTALL_PREFIX:PATH=${DEP_INSTALL_DIR} + -DBUILD_SHARED_LIBS:STRING=OFF ) +set(CMAKE_FIND_LIBRARY_SUFFIXES .a) set(ZLIB_ROOT ${DEP_INSTALL_DIR})