openEuler-22.03-LTS版本安装cuda遇到空间不足问题以及解决办法

  1. 安装cuda和driver:
    $sudo sh ./cuda_12.2.0_535.54.03_linux.run

  2. 遇到解压失败问题,提示如下:
    Extraction failed.
    Ensure there is enough space in /tmp and that the installation package is not corrupt
    Signal caught, cleaning up

  3. 解决办法
    $sudo mkdir /opt/temp
    $sudo sh ./cuda_12.2.0_535.54.03_linux.run --tmpdir=/opt/temp

1 个赞

放到home了还是没用有其他方法吗

你找一个大一点的有空闲空间的分区,sudo sh ./cuda_12.2.0_535.54.03_linux.run --tmpdir=xxxx,把参数–tmpdir=xxxx指向这个分区下的一个目录。失败的主要原因就是解压需要一些空间来存储解压后的文件,所以找个大点的分区应该就能解决。