summaryrefslogtreecommitdiff
path: root/runcuda
diff options
context:
space:
mode:
Diffstat (limited to 'runcuda')
-rwxr-xr-xruncuda9
1 files changed, 9 insertions, 0 deletions
diff --git a/runcuda b/runcuda
new file mode 100755
index 0000000..1c4de58
--- /dev/null
+++ b/runcuda
@@ -0,0 +1,9 @@
+#!/bin/bash
+
+set -e
+
+nvcc -allow-unsupported-compiler $1 -o temp
+
+chmod +x temp # if it isn't already executable
+
+./temp