Skip to content

Commit

Permalink
use binaries
Browse files Browse the repository at this point in the history
  • Loading branch information
Borda committed Nov 6, 2020
1 parent 57c5f10 commit c160d9d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 50 deletions.
3 changes: 1 addition & 2 deletions dockers/base-conda/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ RUN \
# Install remaining requirements
pip install -r requirements-extra.txt --upgrade-strategy only-if-needed && \
pip install -r requirements-test.txt --upgrade-strategy only-if-needed && \
pip install --extra-index-url https://developer.download.nvidia.com/compute/redist nvidia-dali-cuda${CUDA_VERSION%%.*}0 && \
rm requirements*

RUN \
Expand All @@ -112,8 +113,6 @@ RUN \
pip install --no-cache-dir --global-option="--cpp_ext" --global-option="--cuda_ext" ./apex && \
rm -rf apex

# todo: add DALI

RUN \
# Show what we have
pip --version && \
Expand Down
49 changes: 1 addition & 48 deletions dockers/base-cuda/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ RUN \

# Install all requirements
pip install -r requirements/devel.txt --upgrade-strategy only-if-needed --use-feature=2020-resolver && \
pip install --extra-index-url https://developer.download.nvidia.com/compute/redist nvidia-dali-cuda${CUDA_VERSION%%.*}0 && \
rm -rf requirements*

RUN \
Expand All @@ -102,54 +103,6 @@ RUN \
pip install --no-cache-dir --global-option="--cpp_ext" --global-option="--cuda_ext" ./apex && \
rm -rf apex

ENV CMAKE_VERSION=3.16.9

RUN \
# need to install cmake > 3.13 for DALI build
apt-get remove cmake -y && \
wget https://cmake.org/files/v${CMAKE_VERSION%.*}/cmake-${CMAKE_VERSION}-Linux-x86_64.sh --progress=bar:force:noscroll && \
bash cmake-${CMAKE_VERSION}-Linux-x86_64.sh --skip-license && \
rm cmake-${CMAKE_VERSION}-Linux-x86_64.sh && \
cmake --version

RUN \
apt-get update -qq && \
apt-get install -y \
libopencv-dev \
libsndfile-dev \
libavfilter-dev \
libprotobuf-dev \
protobuf-compiler \
&& \
# Get DALI source code:
git clone --recursive https://github.com/NVIDIA/DALI && \
cd DALI && \
# Create a directory for CMake-generated Makefiles. This will be the directory, that DALI’s built in.
mkdir build && \
cd build && \
wget https://github.com/Kitware/CMake/releases/download/v${CMAKE_VERSION}/cmake-${CMAKE_VERSION}-Linux-x86_64.sh && \
bash cmake-${CMAKE_VERSION}-Linux-x86_64.sh --skip-license && \
rm cmake-${CMAKE_VERSION}-Linux-x86_64.sh && \
bin/cmake --version && \
# Run CMake. For additional options you can pass to CMake, refer to Optional CMake build parameters.
bin/cmake -D CMAKE_BUILD_TYPE=Release .. && \
# Build. You can use -j option to execute it in several threads
make -j"$(nproc)" && \
# In order to run DALI using Python API, you need to install Python bindings
pip install dali/python && \
# claan-up
cd ../.. && \
rm -rf DALI && \
apt-get remove -y \
libopencv-dev \
libsndfile-dev \
libavfilter-dev \
libprotobuf-dev \
protobuf-compiler \
&& \
apt-get autoremove -y && \
apt-get clean && \

RUN \
# Show what we have
pip --version && \
Expand Down

0 comments on commit c160d9d

Please sign in to comment.