dmlc / dmlc/decord

Error building decord on GPU

Open
#186 9 comments 1 reaction 0 assignees View on GitHub
Dominant language
C++
Stars
2.5k
Forks
232
PR merge metrics
No merged PRs in 30d

Description

I am getting errors when I do `make`. I've built ffmpeg from source(with GPU support).

```
[ 21%] Building CXX object CMakeFiles/decord.dir/src/runtime/module_util.cc.o
In file included from /home/prabhatroy/Document/repos/decord/src/audio/../../include/decord/audio_interface.h:9,
from /home/prabhatroy/Document/repos/decord/src/audio/audio_reader.h:10,
from /home/prabhatroy/Document/repos/decord/src/audio/audio_interface.cc:5:
/home/prabhatroy/Document/repos/decord/src/audio/../../include/decord/../../src/video/ffmpeg/ffmpeg_common.h:187:5: error: ‘AVBSFContext’ was not declared in this scope
AVBSFContext, Deleterp >;
^~~~~~~~~~~~
/home/prabhatroy/Document/repos/decord/src/audio/../../include/decord/../../src/video/ffmpeg/ffmpeg_common.h:187:5: note: suggested alternative: ‘AVIOContext’
AVBSFContext, Deleterp >;
^~~~~~~~~~~~
AVIOContext
/home/prabhatroy/Document/repos/decord/src/audio/../../include/decord/../../src/video/ffmpeg/ffmpeg_common.h:187:28: error: ‘AVBSFContext’ was not declared in this scope
AVBSFContext, Deleterp >;
^~~~~~~~~~~~
/home/prabhatroy/Document/repos/decord/src/audio/../../include/decord/../../src/video/ffmpeg/ffmpeg_common.h:187:28: note: suggested alternative: ‘AVIOContext’
AVBSFContext, Deleterp >;
^~~~~~~~~~~~
AVIOContext
/home/prabhatroy/Document/repos/decord/src/audio/../../include/decord/../../src/video/ffmpeg/ffmpeg_common.h:187:48: error: ‘av_bsf_free’ was not declared in this scope
AVBSFContext, Deleterp >;
^~~~~~~~~~~
/home/prabhatroy/Document/repos/decord/src/audio/../../include/decord/../../src/video/ffmpeg/ffmpeg_common.h:187:48: note: suggested alternative: ‘av_opt_free’
AVBSFContext, Deleterp >;
^~~~~~~~~~~
av_opt_free
/home/prabhatroy/Document/repos/decord/src/audio/../../include/decord/../../src/video/ffmpeg/ffmpeg_common.h:187:59: error: template argument 1 is invalid
AVBSFContext, Deleterp >;
^
/home/prabhatroy/Document/repos/decord/src/audio/../../include/decord/../../src/video/ffmpeg/ffmpeg_common.h:187:59: error: template argument 3 is invalid
/home/prabhatroy/Document/repos/decord/src/audio/../../include/decord/../../src/video/ffmpeg/ffmpeg_common.h:187:61: error: template argument 1 is invalid
AVBSFContext, Deleterp >;
^
/home/prabhatroy/Document/repos/decord/src/audio/../../include/decord/../../src/video/ffmpeg/ffmpeg_common.h:187:61: error: template argument 2 is invalid
In file included from /home/prabhatroy/Document/repos/decord/src/audio/../../include/decord/audio_interface.h:9,
from /home/prabhatroy/Document/repos/decord/src/audio/audio_reader.h:10,
from /home/prabhatroy/Document/repos/decord/src/audio/audio_reader.cc:5:
/home/prabhatroy/Document/repos/decord/src/audio/../../include/decord/../../src/video/ffmpeg/ffmpeg_common.h:187:5: error: ‘AVBSFContext’ was not declared in this scope
AVBSFContext, Deleterp >;
^~~~~~~~~~~~
/home/prabhatroy/Document/repos/decord/src/audio/../../include/decord/../../src/video/ffmpeg/ffmpeg_common.h:187:5: note: suggested alternative: ‘AVIOContext’
AVBSFContext, Deleterp >;
^~~~~~~~~~~~
AVIOContext
/home/prabhatroy/Document/repos/decord/src/audio/../../include/decord/../../src/video/ffmpeg/ffmpeg_common.h:187:28: error: ‘AVBSFContext’ was not declared in this scope
AVBSFContext, Deleterp >;
^~~~~~~~~~~~
/home/prabhatroy/Document/repos/decord/src/audio/../../include/decord/../../src/video/ffmpeg/ffmpeg_common.h:187:28: note: suggested alternative: ‘AVIOContext’
AVBSFContext, Deleterp >;
^~~~~~~~~~~~
AVIOContext
/home/prabhatroy/Document/repos/decord/src/audio/../../include/decord/../../src/video/ffmpeg/ffmpeg_common.h:187:48: error: ‘av_bsf_free’ was not declared in this scope
AVBSFContext, Deleterp >;
^~~~~~~~~~~
/home/prabhatroy/Document/repos/decord/src/audio/../../include/decord/../../src/video/ffmpeg/ffmpeg_common.h:187:48: note: suggested alternative: ‘av_opt_free’
AVBSFContext, Deleterp >;
^~~~~~~~~~~
av_opt_free
/home/prabhatroy/Document/repos/decord/src/audio/../../include/decord/../../src/video/ffmpeg/ffmpeg_common.h:187:59: error: template argument 1 is invalid
AVBSFContext, Deleterp >;
^
/home/prabhatroy/Document/repos/decord/src/audio/../../include/decord/../../src/video/ffmpeg/ffmpeg_common.h:187:59: error: template argument 3 is invalid
/home/prabhatroy/Document/repos/decord/src/audio/../../include/decord/../../src/video/ffmpeg/ffmpeg_common.h:187:61: error: template argument 1 is invalid
AVBSFContext, Deleterp >;
^
/home/prabhatroy/Document/repos/decord/src/audio/../../include/decord/../../src/video/ffmpeg/ffmpeg_common.h:187:61: error: template argument 2 is invalid
make[2]: *** [CMakeFiles/decord.dir/build.make:76: CMakeFiles/decord.dir/src/audio/audio_interface.cc.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [CMakeFiles/decord.dir/build.make:90: CMakeFiles/decord.dir/src/audio/audio_reader.cc.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:83: CMakeFiles/decord.dir/all] Error 2
make: *** [Makefile:136: all] Error 2
```

Following is the result of cmake:
```
(py36_env) [prabhatroy@devgpu003.ftw2 ~/Document/repos/decord/build] cmake .. -DUSE_CUDA=ON -DCMAKE_BUILD_TYPE=Release -DFFMPEG_DIR="/usr/local/bin"
-- The C compiler identification is GNU 8.5.0
-- The CXX compiler identification is GNU 8.5.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- The CUDA compiler identification is NVIDIA 11.1.74
-- Detecting CUDA compiler ABI info
-- Detecting CUDA compiler ABI info - done
-- Check for working CUDA compiler: /home/prabhatroy/fbsource/third-party/cuda/cuda_11.1/x64-linux/bin/nvcc - skipped
-- Detecting CUDA compile features
-- Detecting CUDA compile features - done
-- Performing Test SUPPORT_CXX11
-- Performing Test SUPPORT_CXX11 - Success
FFMPEG_INCLUDE_DIR = /usr/local/bin/include
FFMPEG_LIBRARIES = /usr/local/bin/lib/libavformat.so;/usr/local/bin/lib/libavfilter.so;/usr/local/bin/lib/libavcodec.so;/usr/local/bin/lib/libavutil.so;/usr/local/bin/lib/libavdevice.so;/usr/local/bin/lib/libswresample.so
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Found CUDA_TOOLKIT_ROOT_DIR=/home/prabhatroy/fbsource/third-party/cuda/cuda_11.1/x64-linux
-- Found CUDA_CUDA_LIBRARY=/home/prabhatroy/fbsource/third-party/cuda/cuda_11.1/x64-linux/lib64/stubs/libcuda.so
-- Found CUDA_CUDART_LIBRARY=/home/prabhatroy/fbsource/third-party/cuda/cuda_11.1/x64-linux/lib64/libcudart.so
-- Found CUDA_NVRTC_LIBRARY=/home/prabhatroy/fbsource/third-party/cuda/cuda_11.1/x64-linux/lib/libnvrtc.so
-- Found CUDA_CUDNN_LIBRARY=CUDA_CUDNN_LIBRARY-NOTFOUND
-- Found CUDA_CUBLAS_LIBRARY=/home/prabhatroy/fbsource/third-party/cuda/cuda_11.1/x64-linux/lib64/libcublas.so
-- Found CUDA_NVIDIA_ML_LIBRARY=/home/prabhatroy/fbsource/third-party/cuda/cuda_11.1/x64-linux/lib64/stubs/libnvidia-ml.so
-- Found CUDA_NVCUVID_LIBRARY=/usr/lib64/libnvcuvid.so
-- Build with CUDA support
-- Configuring done
CMake Warning (dev) in CMakeLists.txt:
Policy CMP0104 is not set: CMAKE_CUDA_ARCHITECTURES now detected for NVCC,
empty CUDA_ARCHITECTURES not allowed. Run "cmake --help-policy CMP0104"
for policy details. Use the cmake_policy command to set the policy and
suppress this warning.

CUDA_ARCHITECTURES is empty for target "decord".
This warning is for project developers. Use -Wno-dev to suppress it.

-- Generating done
-- Build files have been written to: /home/prabhatroy/Document/repos/decord/build
```

Versions:
```
OS: CentOS Stream 8 (x86_64)
GCC version: (GCC) 8.5.0 20210514 (Red Hat 8.5.0-2)
Clang version: Could not collect
CMake version: version 3.20.2
Libc version: glibc-2.17

Python version: 3.6.13 |Anaconda, Inc.| (default, Jun 4 2021, 14:25:59) [GCC 7.5.0] (64-bit runtime)
Python platform: Linux-5.6.13-0_fbk17_5815_gc01d8dbd2635-x86_64-with-centos-8
Is CUDA available: True
CUDA runtime version: 11.1.74
GPU models and configuration:
GPU 0: Tesla P100-SXM2-16GB
GPU 1: Tesla P100-SXM2-16GB
GPU 2: Tesla P100-SXM2-16GB
GPU 3: Tesla P100-SXM2-16GB
GPU 4: Tesla P100-SXM2-16GB
GPU 5: Tesla P100-SXM2-16GB
GPU 6: Tesla P100-SXM2-16GB
GPU 7: Tesla P100-SXM2-16GB

Nvidia driver version: 470.57.02
ffmpeg version N-104236-g21979cf98e
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.