Skip to content

Instantly share code, notes, and snippets.

@yuyu2172
Last active June 4, 2019 07:25
Show Gist options
  • Save yuyu2172/617e7ad10eca37f54bf1e9b3d542cd7f to your computer and use it in GitHub Desktop.
Save yuyu2172/617e7ad10eca37f54bf1e9b3d542cd7f to your computer and use it in GitHub Desktop.
T480s with Ubuntu16.04 (Nvidia GPU, display)

Lenovo ThinkPad T480s

Install Ubuntu

Install Ubuntu16.04 and install basic software updates.

$ sudo apt update
$ sudo apt upgrade

Setup Nvidia GPU driver

Installation with GUI worked (CLI ended up in infinite login loop...).

Software & Update -> Additional Drivers -> Select Nvidia Driver

This will install GPU driver (version 384.130). Restart the computer, and you should be able to login without any problem.

Setup CUDA

Since the driver is relatively old, you can not use the latest CUDA. I checked the driver to work with CUDA9.0. Note that CUDA9.2 didn't work. Install CUDA9.0 by downloading cuda_9.0.*.run.

When installing CUDA, do not install Nvidia Driver.

Install CuPy

$ sudo apt install python3-pip
$ pip3 install numpy
$ pip3 install cupy-cuda90
$ export LD_LIBRARY_PATH=/usr/local/cuda/lib64:$LD_LIBRARY_PATH
# python3
# check that "import cupy" works

Monitor

As you can see from the spec sheet, you will not be able to display at 4k60Hz with HDMI. For this purpose, you need to use USB3c.

spec

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment