Skip to content

Commit

Permalink
Update Build Script to build libraries with SIMD
Browse files Browse the repository at this point in the history
Signed-off-by: Naveen Tatikonda <navtat@amazon.com>
  • Loading branch information
naveentatikonda committed Feb 5, 2024
1 parent 5f9511b commit bcc5e3b
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 bcc5e3b

Please sign in to comment.