Skip to content

Instantly share code, notes, and snippets.

View RickBahague's full-sized avatar

RickBahague RickBahague

View GitHub Profile
1. Main reference: https://gist.github.com/wangruohui/bc7b9f424e3d5deb0c0b8bba990b1bc5
2. Ensure that all previous nvidia drivers installed are purged.
3. Check if nvidia card is detected via lspci -v | grep
4. Run ubuntu-drivers devices to get the recommended nvidia driver.
5. Install drivers.
@RickBahague
RickBahague / intel-nvidia.md
Created April 4, 2023 07:23 — 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)
"""
Code that goes along with the Airflow located at:
http://airflow.readthedocs.org/en/latest/tutorial.html
Modified: RickBahague, https://github.com/RickBahague/airflow-dags
"""
from airflow import DAG
from airflow.operators.bash_operator import BashOperator
from airflow.contrib.operators import SSHExecuteOperator
from airflow.contrib.hooks import SSHHook
from airflow.operators import HttpSensor, SimpleHttpOperator