Add hack script for CUDA.
authorCarl Hetherington <cth@carlh.net>
Tue, 26 May 2015 10:48:27 +0000 (11:48 +0100)
committerCarl Hetherington <cth@carlh.net>
Mon, 21 Mar 2016 16:41:12 +0000 (16:41 +0000)
hacks/setup_cuda [new file with mode: 0755]

diff --git a/hacks/setup_cuda b/hacks/setup_cuda
new file mode 100755 (executable)
index 0000000..9506dc7
--- /dev/null
@@ -0,0 +1,6 @@
+#!/bin/bash
+
+sudo modprobe nvidia-uvm
+D=`grep nvidia-uvm /proc/devices | awk '{print $1}'`
+sudo mknod -m 666 /dev/nvidia-uvm c $D 0
+