Skip to content
This repository has been archived by the owner on Jan 29, 2023. It is now read-only.

Commit

Permalink
Fix torch compile issue
Browse files Browse the repository at this point in the history
  • Loading branch information
ufoym committed Feb 13, 2018
1 parent 5e6f47d commit 972a771
Show file tree
Hide file tree
Showing 11 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions docker/Dockerfile.all-py27
Expand Up @@ -65,6 +65,7 @@ RUN APT_INSTALL="apt-get install -y --no-install-recommends" && \
# torch
# ------------------------------------------------------------------

export TORCH_NVCC_FLAGS="-D__CUDA_NO_HALF_OPERATORS__"
$GIT_CLONE https://github.com/torch/distro.git ~/torch --recursive && \

cd ~/torch/exe/luajit-rocks && \
Expand Down
1 change: 1 addition & 0 deletions docker/Dockerfile.all-py27-cpu
Expand Up @@ -65,6 +65,7 @@ RUN APT_INSTALL="apt-get install -y --no-install-recommends" && \
# torch
# ------------------------------------------------------------------

export TORCH_NVCC_FLAGS="-D__CUDA_NO_HALF_OPERATORS__"
$GIT_CLONE https://github.com/torch/distro.git ~/torch --recursive && \

cd ~/torch/exe/luajit-rocks && \
Expand Down
1 change: 1 addition & 0 deletions docker/Dockerfile.all-py27-jupyter
Expand Up @@ -66,6 +66,7 @@ RUN APT_INSTALL="apt-get install -y --no-install-recommends" && \
# torch
# ------------------------------------------------------------------

export TORCH_NVCC_FLAGS="-D__CUDA_NO_HALF_OPERATORS__"
$GIT_CLONE https://github.com/torch/distro.git ~/torch --recursive && \

cd ~/torch/exe/luajit-rocks && \
Expand Down
1 change: 1 addition & 0 deletions docker/Dockerfile.all-py27-jupyter-cpu
Expand Up @@ -66,6 +66,7 @@ RUN APT_INSTALL="apt-get install -y --no-install-recommends" && \
# torch
# ------------------------------------------------------------------

export TORCH_NVCC_FLAGS="-D__CUDA_NO_HALF_OPERATORS__"
$GIT_CLONE https://github.com/torch/distro.git ~/torch --recursive && \

cd ~/torch/exe/luajit-rocks && \
Expand Down
1 change: 1 addition & 0 deletions docker/Dockerfile.all-py36
Expand Up @@ -74,6 +74,7 @@ RUN APT_INSTALL="apt-get install -y --no-install-recommends" && \
# torch
# ------------------------------------------------------------------

export TORCH_NVCC_FLAGS="-D__CUDA_NO_HALF_OPERATORS__"
$GIT_CLONE https://github.com/torch/distro.git ~/torch --recursive && \

cd ~/torch/exe/luajit-rocks && \
Expand Down
1 change: 1 addition & 0 deletions docker/Dockerfile.all-py36-cpu
Expand Up @@ -74,6 +74,7 @@ RUN APT_INSTALL="apt-get install -y --no-install-recommends" && \
# torch
# ------------------------------------------------------------------

export TORCH_NVCC_FLAGS="-D__CUDA_NO_HALF_OPERATORS__"
$GIT_CLONE https://github.com/torch/distro.git ~/torch --recursive && \

cd ~/torch/exe/luajit-rocks && \
Expand Down
1 change: 1 addition & 0 deletions docker/Dockerfile.all-py36-jupyter
Expand Up @@ -75,6 +75,7 @@ RUN APT_INSTALL="apt-get install -y --no-install-recommends" && \
# torch
# ------------------------------------------------------------------

export TORCH_NVCC_FLAGS="-D__CUDA_NO_HALF_OPERATORS__"
$GIT_CLONE https://github.com/torch/distro.git ~/torch --recursive && \

cd ~/torch/exe/luajit-rocks && \
Expand Down
1 change: 1 addition & 0 deletions docker/Dockerfile.all-py36-jupyter-cpu
Expand Up @@ -75,6 +75,7 @@ RUN APT_INSTALL="apt-get install -y --no-install-recommends" && \
# torch
# ------------------------------------------------------------------

export TORCH_NVCC_FLAGS="-D__CUDA_NO_HALF_OPERATORS__"
$GIT_CLONE https://github.com/torch/distro.git ~/torch --recursive && \

cd ~/torch/exe/luajit-rocks && \
Expand Down
1 change: 1 addition & 0 deletions docker/Dockerfile.torch
Expand Up @@ -32,6 +32,7 @@ RUN APT_INSTALL="apt-get install -y --no-install-recommends" && \
# torch
# ------------------------------------------------------------------

export TORCH_NVCC_FLAGS="-D__CUDA_NO_HALF_OPERATORS__"
$GIT_CLONE https://github.com/torch/distro.git ~/torch --recursive && \

cd ~/torch/exe/luajit-rocks && \
Expand Down
1 change: 1 addition & 0 deletions docker/Dockerfile.torch-cpu
Expand Up @@ -32,6 +32,7 @@ RUN APT_INSTALL="apt-get install -y --no-install-recommends" && \
# torch
# ------------------------------------------------------------------

export TORCH_NVCC_FLAGS="-D__CUDA_NO_HALF_OPERATORS__"
$GIT_CLONE https://github.com/torch/distro.git ~/torch --recursive && \

cd ~/torch/exe/luajit-rocks && \
Expand Down
1 change: 1 addition & 0 deletions generator/modules/torch.py
Expand Up @@ -9,6 +9,7 @@ class Torch(Module):

def build(self):
return r'''
export TORCH_NVCC_FLAGS="-D__CUDA_NO_HALF_OPERATORS__"
$GIT_CLONE https://github.com/torch/distro.git ~/torch''' \
+ r''' --recursive && \
Expand Down

0 comments on commit 972a771

Please sign in to comment.