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 readme for instructions to build CUDA version #104

Merged
merged 1 commit into from
Oct 18, 2020
Merged
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
15 changes: 12 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,15 +67,24 @@ Clone the repo recursively(important)
git clone --recursive https://github.com/dmlc/decord
```

Build the shared library in source root directory, you can specify `-DUSE_CUDA=ON` or `-DUSE_CUDA=/path/to/cuda` to enable NVDEC hardware accelerated decoding:
Build the shared library in source root directory:

```bash
cd decord
mkdir build && cd build
cmake .. -DUSE_CUDA=0
cmake .. -DUSE_CUDA=0 -DCMAKE_BUILD_TYPE=Release
make
```

you can specify `-DUSE_CUDA=ON` or `-DUSE_CUDA=/path/to/cuda` to enable NVDEC hardware accelerated decoding:

```bash
cmake .. -DUSE_CUDA=ON -DCMAKE_BUILD_TYPE=Release
```

Note that if you encountered the issue(e.g., the offical nvidia docker, see #102) with `libnvcuvid.so`, it's probably due to the missing link for
`libnvcuvid.so`, you can manually find(`ldconfig -p | grep libnvcuvid`) and link the library to `CUDA_TOOLKIT_ROOT_DIR\lib64` to allow `decord` smoothly detect and link the correct library.

To specify a customized FFMPEG library path, use `-DFFMPEG_DIR=/path/to/ffmpeg".

Install python bindings:
Expand Down Expand Up @@ -120,7 +129,7 @@ Then go to root directory build shared library:
```bash
cd decord
mkdir build && cd build
cmake ..
cmake .. -DCMAKE_BUILD_TYPE=Release
make
```

Expand Down