DALI v1.12.0
Key Features and Enhancements
This DALI release includes the following key features and enhancements.
- Added support for the GPU-accelerated decoding of videos with a variable frame rate (experimental.readers.video) (#3668).
- Reduced the binary size (#3680 and #3682).
- Improved the TensorFlow plug-in installation even when none of the prebuilt binaries matches the exact TensorFlow version (#3720).
- Improved performance by increasing the usage of pinned memory in argument input buffers (#3728).
- Documentation improvements (#3722, #3684, and #3674).
Fixed Issues
- Fixed the TensorFlow plug-in issue that prevented it from working in the CPU-only mode (#3719).
Improvements
- [DALI TF] Try building from source when TF version doesn't match exactly. Add test step to installation script. (#3720)
- Add supported layouts to Crop, CropMirrorNormalize (#3722)
- Make output buffers for arugment inputs to GPU operators pinned. (#3728)
- Bump up TensorFlow version used in tests (#3688)
- Fix coverity issues (#3679)
- Bump up CUDA to 11.6U1 (#3709)
- Add test to check if importing DALI doesn't break Torch process forking (#3669)
- Add non-owning SampleView (#3706)
- Use pinned buffers for kernel parameters and for ToContiguousGPU. (#3689)
- Update deps version for libtiff-CVE-2022-0561 fix (#3693)
- Update documentation regarding GDS being part of CUDA toolkit (#3684)
- Add VideoReaderDecoder GPU (#3668)
- Custom build: subset of file patterns for kernel and operators (#3672)
- Remove
lineinfo
from RelWithDebInfo DALI builds (#3680) - Build DALI only for major arch versions (#3682)
- Remove mpiexec affinity binding in TensorFlow TL1 and TL3 RN50 test (#3681)
- Remove Scratchpad from KernelManager (#3678)
- Update dependencies (#3677)
- Use DynamicScratchpad in KernelManager. (#3670)
- Add an info about
fill_values
being used bypad_output
in crop_mirror_normalize (#3674)
Bug Fixes
- Fix CVE-2022-0626 in libtiff (#3727)
- Fix TensorFlow plugin operation without GPU (#3719)
- Syncrhonize at the end of BoxEncoder's constructor. (#3724)
- Fix ES debug mode test failing with missing batch (#3712)
- Add missing
import nose.SkipTest
in optical flow tests (#3707) - Fix stream handling in video loader and nvdecoder. (#3705)
- Fix typos found in tensor_shape.h docs (#3695)
- Fix optical flow tests for Turing (#3685)
- Fix Slice's adaptive tiling for smaller output types (#3687)
Breaking API changes
There are no breaking changes in this DALI release.
Deprecated features
There are no deprecated features in this DALI release.
Known issues:
- The video loader operator requires that the key frames occur at a minimum every 10 to 15 frames of the video stream. If the key frames occur at a lesser frequency, then the returned frames may be out of sync.
- The DALI TensorFlow plugin might not be compatible with TensorFlow versions 1.15.0 and later.
To use DALI with the TensorFlow version that does not have a prebuilt plugin binary shipped with DALI, make sure that the compiler that is used to build TensorFlow exists on the system during the plugin installation. (Depending on the particular version, use GCC 4.8.4, GCC 4.8.5, or GCC 5.4.) - Due to some known issues with meltdown/spectra mitigations and DALI, DALI shows best performance when run in Docker with escalated privileges, for example:
- privileged=yes in Extra Settings for AWS data points
- --privileged or --security-opt seccomp=unconfined for bare Docker
Binary builds
Install via pip for CUDA 10.2:
pip install --extra-index-url https://developer.download.nvidia.com/compute/redist/ nvidia-dali-cuda102==1.12.0
pip install --extra-index-url https://developer.download.nvidia.com/compute/redist/ nvidia-dali-tf-plugin-cuda102==1.12.0
or for CUDA 11:
CUDA 11.0 build uses CUDA toolkit enhanced compatibility. It is built with the latest CUDA 11.x toolkit
while it can run on the latest, stable CUDA 11.0 capable drivers (450.80 or later).
Using the latest driver may enable additional functionality.
More details can be found in enhanced CUDA compatibility guide.
pip install --extra-index-url https://developer.download.nvidia.com/compute/redist/ nvidia-dali-cuda110==1.12.0
pip install --extra-index-url https://developer.download.nvidia.com/compute/redist/ nvidia-dali-tf-plugin-cuda110==1.12.0
Or use direct download links (CUDA 10.2):
- https://developer.download.nvidia.com/compute/redist/nvidia-dali-cuda102/nvidia_dali_cuda102-1.12.0-4144186-py3-none-manylinux2014_x86_64.whl
- https://developer.download.nvidia.com/compute/redist/nvidia-dali-tf-plugin-cuda102/nvidia-dali-tf-plugin-cuda102-1.12.0.tar.gz
Or use direct download links (CUDA 11.0):
- https://developer.download.nvidia.com/compute/redist/nvidia-dali-cuda110/nvidia_dali_cuda110-1.12.0-4144197-py3-none-manylinux2014_x86_64.whl
- https://developer.download.nvidia.com/compute/redist/nvidia-dali-cuda110/nvidia_dali_cuda110-1.12.0-4144197-py3-none-manylinux2014_aarch64.whl
- https://developer.download.nvidia.com/compute/redist/nvidia-dali-tf-plugin-cuda110/nvidia-dali-tf-plugin-cuda110-1.12.0.tar.gz
FFmpeg source code:
Libsndfile source code: