2017-05-30 83 views
0

无法重新安装最新的火炬。克隆新鲜回购和试图通过install.sh执行一系列的make调用的结果来安装:火炬安装失败:“没有剩余空间在设备上”

[ 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 

没有对/tmp足够的空间,这是一个远程的机器,所以我没有sudo访问,以增加它。有没有解决方法?基本上我想知道,如果有什么方法可以强迫make存储编译文件不在/tmp上?

回答

0

看来我只是需要创建tmp dir并将它设置为TMPDIR env变量。

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

这取决于什么tmp是。

有时,作为一种优化,tmp安装在虚拟盘。你可以看看使用mount/etc/fstab

如果不是这种情况,那么请确保所在的磁盘分区/tmp是有足够的空间,或删除其他未使用的临时文件。

BleachBit,封装在许多发行版,可以帮助您释放空间。

+0

在我看来,这并没有给这个问题提供多少,OP已经表示'但是我没有sudo访问增加[/ tmp目录分区大小]',所以_mount_/_fstab_提到这里是无关紧要的。 –

+0

如果他有'/ tmp'的写权限,他可以删除其他'/ tmp'文件。 “BleachBit”也适合你。 – arboreal84

相关问题