Installation¶
Installing prebuilt DALI packages¶
Prerequisities¶
- Linux x64
- NVIDIA Driver supporting CUDA 9.0 or later (i.e., 384.xx or later driver releases)
- One or more of the following Deep Learning frameworks:
- MXNet 1.3 beta
mxnet-cu90==1.3.0b20180612
or later - pyTorch 0.4
- TensorFlow 1.7 or later
- MXNet 1.3 beta
Installation¶
pip install --extra-index-url https://developer.download.nvidia.com/compute/redist nvidia-dali
Compiling DALI from source¶
Prerequisities¶
- Linux x64
- NVIDIA CUDA 9.0 (CUDA 8.0 compatibility is provided unofficially)
- nvJPEG library (This can be unofficially disabled; see below)
- protobuf version 2 or later (version 3 or later is required for TensorFlow TFRecord file format support)
- CMake 3.5 or later
- libjpeg-turbo 1.5.x or later (This can be unofficially disabled; see below)
- OpenCV 3 or later (OpenCV 2.x compatibility is provided unofficially)
- (Optional) liblmdb 0.9.x or later
- One or more of the following Deep Learning frameworks:
- MXNet 1.3 beta
mxnet-cu90==1.3.0b20180612
or later - pyTorch 0.4
- TensorFlow 1.7 or later
- MXNet 1.3 beta
Note
TensorFlow installation is required to build the TensorFlow plugin for DALI
Note
Items marked “unofficial” are community contributions that are believed to work but not officially tested or maintained by NVIDIA.
Get the DALI source¶
git clone --recursive https://github.com/NVIDIA/dali
cd dali
Make the build directory¶
mkdir build
cd build
Compile DALI¶
To build DALI without LMDB support:
cmake ..
make -j"$(nproc)" install
To build DALI with LMDB support:
cmake -DBUILD_LMDB=ON ..
make -j"$(nproc)" install
Optional CMake build parameters:
BUILD_PYTHON
- build Python bindings (default: ON)BUILD_TEST
- include building test suite (default: ON)BUILD_BENCHMARK
- include building benchmarks (default: ON)BUILD_LMDB
- build with support for LMDB (default: OFF)BUILD_NVTX
- build with NVTX profiling enabled (default: OFF)BUILD_TENSORFLOW
- build TensorFlow plugin (default: OFF)- (Unofficial)
BUILD_JPEG_TURBO
- build with libjpeg-turbo (default: ON) - (Unofficial)
BUILD_NVJPEG
- build with nvJPEG (default: ON)
Install Python bindings¶
pip install dali/python