#!/bin/sh
if [ $(id -u) != 0 ]; then
 echo "Error: You must be root to run this script!" >&2
 exit 1
fi

DISTRIBUTION=sid
#DISTRIBUTION=experimental

echo deb http://ftp.de.debian.org/debian $DISTRIBUTION non-free > /etc/apt/sources.list.d/$DISTRIBUTION.list

apt-get update
apt-get --yes install -t $DISTRIBUTION nvidia-cuda-dev

rm -f /etc/apt/sources.list.d/$DISTRIBUTION.list

apt-get update

apt-get --yes install libopenmpi-dev
