Torch7: Torch installation failure: "No space left on device"

Created on 16 May 2017  路  1Comment  路  Source: torch/torch7

Cloning fresh repo and attempting to install via install.sh on Debian results in:

[ 75%] Building NVCC (Device) object lib/THC/CMakeFiles/THC.dir/generated/THC_generated_THCTensorMathCompareTDouble.cu.o
[ 76%] Building NVCC (Device) object lib/THC/CMakeFiles/THC.dir/generated/THC_generated_THCTensorMathPointwiseDouble.cu.o
[ 77%] Building NVCC (Device) object lib/THC/CMakeFiles/THC.dir/generated/THC_generated_THCTensorMathCompareDouble.cu.o
[ 78%] Building NVCC (Device) object lib/THC/CMakeFiles/THC.dir/generated/THC_generated_THCTensorMathReduceDouble.cu.o
[ 80%] Building NVCC (Device) object lib/THC/CMakeFiles/THC.dir/generated/THC_generated_THCTensorMaskedDouble.cu.o
/usr/include/x86_64-linux-gnu/bits/mathcalls.h(234) (col. 12): catastrophic error: error while writing generated C++ file: No space left on device

1 catastrophic error detected in the compilation of "/tmp/tmpxft_0001f39b_00000000-5_THCTensorMaskedDouble.cpp4.ii".
Compilation terminated.
fatbinary fatal   : Could not write file '/tmp/tmpxft_0001efb5_00000000-2_THCTensorMathCompareTHalf.fatbin.c'
CMake Error at THC_generated_THCTensorMathCompareTHalf.cu.o.cmake:267 (message):
  Error generating file
  /local/pavels/torch/extra/cutorch/build/lib/THC/CMakeFiles/THC.dir/generated/./THC_generated_THCTensorMathCompareTHalf.cu.o

Please, keep in mind that many, many torch installations are done locally on remote machines (university clusters) where users have no access to sudo and therefore cannot manually set /tmp directory size. This issue has already been addressed by me for cutorch now it started popping up for torch. Is there any workaround?

Most helpful comment

I managed to figure it out.

mkdir $HOME/tmp
export TMPDIR=$HOME/tmp

>All comments

I managed to figure it out.

mkdir $HOME/tmp
export TMPDIR=$HOME/tmp
Was this page helpful?
0 / 5 - 0 ratings