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