(nouveau是一個內建的nvidia驅動,會導致GeForce 1080ti出問題)
-
產生檔案
/etc/modprobe.d/nouveau
-
以下code貼進該檔案
blacklist nouveau
options nouveau modeset=0
- 重開機
> sudo apt-get update
> sudo apt-get install openjdk-8-jdk git python-dev python3-dev python-numpy python3-numpy build-essential python-pip python3-pip python-virtualenv swig python-wheel libcurl3-dev
> curl -O http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64/cuda-repo-ubuntu1604_8.0.61-1_amd64.deb
> sudo dpkg -i ./cuda-repo-ubuntu1604_8.0.61-1_amd64.deb
> sudo apt-get update
> sudo apt-get install cuda
> curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
> sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
> sudo apt-get update
> apt-cache policy docker-ce
> sudo apt-get install -y docker-ce
> sudo systemctl status docker
> sudo usermod -aG docker $USER
登出使用者再登入
> wget https://github.com/NVIDIA/nvidia-docker/releases/download/v1.0.1/nvidia-docker_1.0.1-1_amd64.deb
> sudo dpkg -i nvidia-docker*.deb
> nvidia-smi
如果出現如下畫面即安裝成功
> nvidia-docker run -itd --name <name> --hostname <hostname> -p <port>:8888 tensorflow/tensorflow:nightly-gpu-py3 /run_jupyter.sh --allow-root --ip=0.0.0.0
PS. 注意 -p 參數可開通多個port