From 6215bc6b4e524735b75a45cdf6d08c7edf641bdb Mon Sep 17 00:00:00 2001 From: xAlpharax <42233094+xAlpharax@users.noreply.github.com> Date: Sun, 24 Sep 2023 21:06:27 +0300 Subject: Shell scripts for compiling and running C and CUDA standalone files. Changes to be committed: new file: runc new file: runcuda --- runc | 11 +++++++++++ runcuda | 9 +++++++++ 2 files changed, 20 insertions(+) create mode 100755 runc create mode 100755 runcuda 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 -- cgit v1.2.3