美文网首页
Linux安装记录

Linux安装记录

作者: 肠粉白粥_Hoben | 来源:发表于2023-12-01 17:34 被阅读0次

    nouveau:https://zhuanlan.zhihu.com/p/107507007https://docs.nvidia.com/ai-enterprise/deployment-guide-vmware/0.1.0/nouveau.html

    cudatoolkit 11.8

    nvidia驱动

    ln -s /usr/lib/wsl/lib/libcuda.so ~/miniconda3/envs/dmodel/lib/libcuda.so

    export LIBRARY_PATH="/usr/local/cuda/lib64/stubs:$LIBRARY_PATH"

    https://blog.csdn.net/huazhang_001/article/details/128828999

    #   sleep 10; alert
    alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"'
    
    # Alias definitions.
    # You may want to put all your additions into a separate file like
    # ~/.bash_aliases, instead of adding them here directly.
    # See /usr/share/doc/bash-doc/examples in the bash-doc package.
    
    if [ -f ~/.bash_aliases ]; then
        . ~/.bash_aliases
    fi
    
    # enable programmable completion features (you don't need to enable
    # this, if it's already enabled in /etc/bash.bashrc and /etc/profile
    # sources /etc/bash.bashrc).
    if ! shopt -oq posix; then
      if [ -f /usr/share/bash-completion/bash_completion ]; then
        . /usr/share/bash-completion/bash_completion
      elif [ -f /etc/bash_completion ]; then
        . /etc/bash_completion
      fi
    fi
    
    # >>> conda initialize >>>
    # !! Contents within this block are managed by 'conda init' !!
    __conda_setup="$('/home/hongbin/miniconda3/bin/conda' 'shell.bash' 'hook' 2> /dev/null)"
    if [ $? -eq 0 ]; then
        eval "$__conda_setup"
    else
        if [ -f "/home/hongbin/miniconda3/etc/profile.d/conda.sh" ]; then
            . "/home/hongbin/miniconda3/etc/profile.d/conda.sh"
        else
            export PATH="/home/hongbin/miniconda3/bin:$PATH"
        fi
    fi
    unset __conda_setup
    # <<< conda initialize <<<
    export PATH="/usr/local/cuda-11.8/bin:$PATH"
    export CUDA_HOME="/usr/local/cuda-11.8"
    #export LD_LIBRARY_PATH="/usr/local/cuda-11.8/targets/x86_64-linux/lib/stubs:$LD_LIBRARY_PATH"
    export LIBRARY_PATH="/usr/local/cuda-11.8/lib64/stubs:$LIBRARY_PATH"
    export LD_LIBRARY_PATH="/usr/local/cuda-11.8/lib64:$LD_LIBRARY_PATH"
    

    相关文章

      网友评论

          本文标题:Linux安装记录

          本文链接:https://www.haomeiwen.com/subject/jbufwdtx.html