Skip to content

Commit

Permalink
no libtensorflow for arm
Browse files Browse the repository at this point in the history
  • Loading branch information
iameli committed Oct 9, 2023
1 parent 179e102 commit a5b469a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions install_ffmpeg.sh
Original file line number Diff line number Diff line change
Expand Up @@ -184,13 +184,13 @@ elif [[ "$GOOS" == "windows" ]]; then
elif [[ -e "/usr/local/cuda/lib64" ]]; then
echo "CUDA SDK detected, building with GPU support"
EXTRA_FFMPEG_FLAGS="$EXTRA_FFMPEG_FLAGS --enable-nonfree --enable-cuda-nvcc --enable-libnpp --enable-cuda --enable-cuda-llvm --enable-cuvid --enable-nvenc --enable-decoder=h264_cuvid,hevc_cuvid,vp8_cuvid,vp9_cuvid --enable-filter=scale_npp,signature_cuda,hwupload_cuda --enable-encoder=h264_nvenc,hevc_nvenc"
if [[ ! -e "${ROOT}/compiled/lib/libtensorflow_framework.so" ]]; then
if [[ "$GOARCH" == "amd64" && ! -e "${ROOT}/compiled/lib/libtensorflow_framework.so" ]]; then
LIBTENSORFLOW_VERSION=2.12.1 &&
curl -LO https://storage.googleapis.com/tensorflow/libtensorflow/libtensorflow-gpu-linux-x86_64-${LIBTENSORFLOW_VERSION}.tar.gz &&
tar -C ${ROOT}/compiled/ -xzf libtensorflow-gpu-linux-x86_64-${LIBTENSORFLOW_VERSION}.tar.gz &&
rm libtensorflow-gpu-linux-x86_64-${LIBTENSORFLOW_VERSION}.tar.gz
EXTRA_FFMPEG_FLAGS="$EXTRA_FFMPEG_FLAGS --enable-libtensorflow"
fi
EXTRA_FFMPEG_FLAGS="$EXTRA_FFMPEG_FLAGS --enable-libtensorflow"
else
echo "No CUDA SDK detected, building without GPU support"
fi
Expand Down

0 comments on commit a5b469a

Please sign in to comment.