Skip to content

Commit

Permalink
Update Build Script to build libraries with SIMD (#1451)
Browse files Browse the repository at this point in the history
Signed-off-by: Naveen Tatikonda <[email protected]>
  • Loading branch information
naveentatikonda authored Feb 5, 2024
1 parent db87edd commit 8eb0776
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,20 @@ cd $distributions
zip -ur $zipPath lib
cd $work_dir

if [ "$PLATFORM" != "windows" ]; then
echo "Building k-NN libraries after enabling SIMD"
./gradlew :buildJniLib -Dsimd.enabled=true
mkdir $distributions/lib_simd
cp -v $ompPath $distributions/lib_simd
cp -v ./jni/release/${libPrefix}* $distributions/lib_simd
ls -l $distributions/lib_simd

# Add lib_simd directory to the k-NN plugin zip
cd $distributions
zip -ur $zipPath lib_simd
cd $work_dir
fi

echo "COPY ${distributions}/*.zip"
mkdir -p $OUTPUT/plugins
cp -v ${distributions}/*.zip $OUTPUT/plugins
Expand Down

0 comments on commit 8eb0776

Please sign in to comment.