Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Dockerfile.cuda #1380

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 22 additions & 3 deletions Dockerfile.cuda
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,30 @@ RUN git clone https://github.com/FFmpeg/FFmpeg.git && cd FFmpeg && git checkout

RUN git clone https://github.com/FFmpeg/nv-codec-headers.git && cd nv-codec-headers && make && make install

#Add CUDA Stubs to ldconfig:

RUN bash -c "echo '/usr/local/cuda/lib64/stubs/' > /etc/ld.so.conf.d/cuda-stubs.conf"
RUN ldconfig

# install vmaf
RUN python3 -m pip install meson
RUN cd vmaf && meson libvmaf/build libvmaf -Denable_cuda=true -Denable_avx512=true --buildtype release && \
RUN cd vmaf && meson setup \
libvmaf/build libvmaf \
--prefix=/usr/local \
--libdir=/usr/local/lib \
--default-library=shared \
-Denable_tests=false \
-Denable_cuda=true \
-Denable_avx512=true \
--buildtype release && \
ninja -vC libvmaf/build && \
ninja -vC libvmaf/build install
ninja -vC libvmaf/build install && \
mkdir -p /usr/local/share/model/ && \
cp -r /vmaf/model/* /usr/local/share/model/

#Call ldconfig again:

RUN ldconfig

# install ffmpeg
RUN cd FFmpeg && ./configure \
Expand All @@ -32,7 +51,7 @@ RUN cd FFmpeg && ./configure \
--enable-ffnvcodec \
--disable-stripping \
--extra-cflags="-I/usr/local/cuda/include" \
--extra-ldflags="-L/usr/local/cuda/lib64 -L/usr/local/cuda/lib64/stubs/"
--extra-ldflags="-L/usr/local/cuda/lib64"

RUN cd FFmpeg && make -j && make install

Expand Down
Loading