Skip to content

Commit

Permalink
Experimental Intel zlib support
Browse files Browse the repository at this point in the history
  • Loading branch information
neurolabusc committed Feb 13, 2020
1 parent 5373336 commit f1e4cf9
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand Down
2 changes: 2 additions & 0 deletions SuperBuild/External-INTEL-ZLIB.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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})

0 comments on commit f1e4cf9

Please sign in to comment.