Skip to content

Commit

Permalink
build.sh: use disable_cuda option
Browse files Browse the repository at this point in the history
  • Loading branch information
HuHeng authored and sfeiwong committed Feb 18, 2024
1 parent 27d8dbd commit 64f5257
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
8 changes: 2 additions & 6 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,9 @@ then
then
LOCAL_BUILD=0
fi
if [ "$1" = "disable" ]
if [ "$1" = "disable_cuda" ]
then
shift
if [ "$1" = "cuda" ]
then
CUDA_ENABLE=OFF
fi
CUDA_ENABLE=OFF
fi
fi

Expand Down
2 changes: 1 addition & 1 deletion docker/Dockerfile.cpu
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ WORKDIR /root/bmf/
RUN scripts/build_ffmpeg.sh --device=$DEVICE nasm yasm x264 x265 fdk-aac opus \
&& rm -rf ffmpeg_source

RUN ./build.sh disable cuda && rm -rf .git && ./build.sh clean
RUN ./build.sh disable_cuda && rm -rf .git && ./build.sh clean

ENV LD_LIBRARY_PATH=/root/bmf/output/bmf/lib
ENV PATH=${PATH}:/root/bmf/output/bmf/bin
Expand Down

0 comments on commit 64f5257

Please sign in to comment.