summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xrunc11
-rwxr-xr-xruncuda9
2 files changed, 20 insertions, 0 deletions
diff --git a/runc b/runc
new file mode 100755
index 0000000..a68ac83
--- /dev/null
+++ b/runc
@@ -0,0 +1,11 @@
+#!/bin/bash
+
+set -e
+
+g++ $1 -o temp
+
+chmod +x temp
+
+./temp
+
+rm temp
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