Skip to content

Commit

Permalink
Fixes an issue with CUDA v9 from torch/cutorch#797
Browse files Browse the repository at this point in the history
  • Loading branch information
vonavi committed Apr 16, 2018
1 parent 5a5d19f commit 85d0abe
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions torch/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ MAINTAINER Vladimir Ivanov <ivvl82@gmail.com>
RUN apt-get update && apt-get install -y \
git sudo

# Fixes an issue with CUDA v9 from https://github.com/torch/cutorch/issues/797
export TORCH_NVCC_FLAGS="-D__CUDA_NO_HALF_OPERATORS__"

# Run Torch7 installation scripts
RUN git clone https://github.com/torch/distro.git /root/torch --recursive
RUN cd /root/torch && bash install-deps && ./install.sh

0 comments on commit 85d0abe

Please sign in to comment.