Skip to content

Instantly share code, notes, and snippets.

View zhongxiang117's full-sized avatar

Xiang Zhong zhongxiang117

View GitHub Profile
@zhongxiang117
zhongxiang117 / intel-nvidia.md
Created March 30, 2022 03:43 — forked from wangruohui/intel-nvidia.md
Intel for display, Nvidia for computing

Intel for display, NVIDIA for computing

This guide will show you how to use Intel graphics for rendering display and NVIDIA graphics for CUDA computing on Ubuntu 18.04 / 20.04 desktop.

I made this work on an ordinary gaming PC with two graphics devices, an Intel UHD Graphics 630 plus an NVIDIA GeForce GTX 1080 Ti. Both of them can be shown via lspci | grep VGA.

00:02.0 VGA compatible controller: Intel Corporation Device 3e92
01:00.0 VGA compatible controller: NVIDIA Corporation GP102 [GeForce GTX 1080 Ti] (rev a1)
{
"translatorID": "86ffd88b-6f4e-4bec-a5be-839c1034beb2",
"label": "File Hierarchy",
"description": "Export files according to collection organisation",
"creator": "Emiliano Heyns",
"target": "txt",
"minVersion": "4.0.27",
"maxVersion": "",
"configOptions": {
"getCollections": true
# Cache sudo password
sudo -v
# Enable installation of 32-bit packages
sudo dpkg --add-architecture i386
# Enable the Ubuntu partner repository (this doesn't seem to be necessary for 20.04)
if [ $(lsb_release -r | awk '{print $2}') == '18.04' ]; then
sudo sed -i 's/^# deb http:\/\/archive.canonical.com\/ubuntu/deb http:\/\/archive.canonical.com\/ubuntu/' /etc/apt/sources.list
sudo apt update