Skip to content

Commit

Permalink
Added Intel Data Movers Library to cachelib dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
guptask committed Nov 30, 2023
1 parent ff44c3c commit 307a412
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,12 @@ build-glog/
build-googletest/
build-sparsemap/
build-wangle/
build-dml/

# Required source-code dependencies, fetched by ./contrib/ scripts.
cachelib/external/fmt/
cachelib/external/gflags/
cachelib/external/glog/
cachelib/external/googletest/
cachelib/external/sparsemap/
cachelib/external/dml/
4 changes: 3 additions & 1 deletion BUILD.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ These dependencies further require multiple libraries:
* [https://github.com/google/googletest.git](googletest) - Google Testing Framework
* [https://github.com/fmtlib/fmt.git](fmt) - open-source formatting library
* [https://github.com/Tessil/sparse-map.git](sparse-map) - memory efficient hash map and hash set
* [https://github.com/intel/DML.git](dml) - provides high-performance data manipulation on Intel CPUs
* And many more libraries, commonly available as installable packages, e.g:
`boost`, `libevent`, `lz4`, `snappy`, `zlib`, `ssl`, `libunwind`, `libsodium`

Expand Down Expand Up @@ -148,7 +149,7 @@ options:
NAME: the dependency to build supported values are:
googlelog, googleflags, googletest,
fmt, sparsemap,
folly, fizz, wangle, fbthrift,
folly, fizz, wangle, fbthrift, dml,
cachelib
```
Expand Down Expand Up @@ -261,6 +262,7 @@ Example:
./contrib/build-package.sh -B googlelog
./contrib/build-package.sh -B googleflags
./contrib/build-package.sh -B googletest
./contrib/build-package.sh -B dml
./contrib/build-package.sh -B fmt
./contrib/build-package.sh -B sparsemap
./contrib/build-package.sh -B folly
Expand Down
15 changes: 15 additions & 0 deletions contrib/build-package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,21 @@ case "$1" in
external_git_clone=yes
;;

dml)
NAME=dml
REPO=https://github.com/intel/DML.git
REPODIR=cachelib/external/$NAME
SRCDIR=$REPODIR
external_git_clone=yes
external_git_tag="v1.1.1"
cmake_custom_params="-DCMAKE_INSTALL_PREFIX=/usr/ -DDML_BUILD_TESTS=OFF -DLOG_HW_INIT=ON"
if test "$debug_build" ; then
cmake_custom_params="$cmake_custom_params -DCMAKE_BUILD_TYPE=Debug"
else
cmake_custom_params="$cmake_custom_params -DCMAKE_BUILD_TYPE=RelWithDebInfo"
fi
;;

fmt)
NAME=fmt
REPO=https://github.com/fmtlib/fmt.git
Expand Down

0 comments on commit 307a412

Please sign in to comment.