火炬安装失败:“设备上没有剩余空间" [英] Torch installation failure: "No space left on device"

查看:202
本文介绍了火炬安装失败:“设备上没有剩余空间"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

无法重新安装最新的火炬.克隆新的仓库并尝试通过执行一系列make调用的install.sh安装将导致:

Cannot reinstall most recent Torch. Cloning fresh repo and attempting to install via install.sh which performs a series of make calls 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

/tmp上没有足够的空间,这是一台远程计算机,所以我没有sudo访问权限来增加它.有什么解决方法吗?基本上我想知道是否有任何方法可以强制make将编译文件存储在/tmp以外的地方?

There is not enough space on /tmp and this is a remote machine so I don't have sudo access to increase it. Is there any workaround for this? Basically what I want to know if there is any way to force make store compilation files somewhere not on /tmp?

推荐答案

似乎我只需要创建tmp目录,并将其设置为TMPDIR env变量即可.

It appears that I just needed to create tmp dir and set it as TMPDIR env variable.

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

这篇关于火炬安装失败:“设备上没有剩余空间"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆