Skip to content

Instantly share code, notes, and snippets.

@achimnol
achimnol / cuda.conf
Last active September 25, 2016 15:32
An upstart configuration for NVIDIA CUDA device initialization without X environments (derived from Sangjin Han's init.d script)
description "CUDA initialization without X environments"
start on runlevel [2345]
stop on runlevel [!2345]
pre-start script
DRIVER=nvidia
HOLD_GPU=/usr/local/bin/hold_gpu.py
[ -x "$HOLD_GPU" ] || { echo "$HOLD_GPU is missing or not executable!"; exit 1; }