summaryrefslogtreecommitdiff
path: root/short-tests-cmake.sh
diff options
context:
space:
mode:
Diffstat (limited to 'short-tests-cmake.sh')
-rwxr-xr-xshort-tests-cmake.sh27
1 files changed, 27 insertions, 0 deletions
diff --git a/short-tests-cmake.sh b/short-tests-cmake.sh
new file mode 100755
index 0000000..e414441
--- /dev/null
+++ b/short-tests-cmake.sh
@@ -0,0 +1,27 @@
+if [ ! -n "$CUDA_INSTALL_PATH" ]; then
+ echo "ERROR ** Install CUDA Toolkit and set CUDA_INSTALL_PATH.";
+ exit;
+fi
+
+if [ ! -n "$CONFIG" ]; then
+ echo "ERROR ** set the CONFIG env variable to one of those found in ./accel-sim-framework/util/job_launching/configs/define-standard-cfgs.yml";
+ exit;
+fi
+
+if [ ! -n "$GPUAPPS_ROOT" ]; then
+ echo "ERROR ** GPUAPPS_ROOT to a location where the apps have been compiled";
+ exit;
+fi
+
+git config --system --add safe.directory '*'
+
+export PATH=$CUDA_INSTALL_PATH/bin:$PATH
+
+cmake -B build
+cmake --build build -j
+cmake --install build
+source setup
+
+git clone https://github.com/accel-sim/accel-sim-framework.git
+./accel-sim-framework/util/job_launching/run_simulations.py -C $CONFIG -B rodinia_2.0-ft -N regress -l local
+./accel-sim-framework/util/job_launching/monitor_func_test.py -v -N regress -j procman