From 48af0c94ca6d7b05f800f535b3de4cefafcfa655 Mon Sep 17 00:00:00 2001 From: WilliamMTK Date: Wed, 29 Jan 2025 15:40:45 -0500 Subject: Add accelsim test (#82) * add_accelsim_test: add action and test script * add_accelsim_test: add error status to exit command --- short-tests-accelsim.sh | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100755 short-tests-accelsim.sh (limited to 'short-tests-accelsim.sh') diff --git a/short-tests-accelsim.sh b/short-tests-accelsim.sh new file mode 100755 index 0000000..5cb4d2c --- /dev/null +++ b/short-tests-accelsim.sh @@ -0,0 +1,39 @@ +if [ ! -n "$CUDA_INSTALL_PATH" ]; then + echo "ERROR ** Install CUDA Toolkit and set CUDA_INSTALL_PATH."; + exit 1; +fi + +if [ ! -n "$ACCELSIM_BRANCH" ]; then + echo "ERROR ** set the ACCELSIM_BRANCH env variable"; + exit 1; +fi + +if [ ! -n "$GPUAPPS_ROOT" ]; then + echo "ERROR ** GPUAPPS_ROOT to a location where the apps have been compiled"; + exit 1; +fi + +git config --system --add safe.directory '*' + +export PATH=$CUDA_INSTALL_PATH/bin:$PATH +source ./setup_environment +make -j + +git clone https://github.com/accel-sim/accel-sim-framework.git + +# Build accel-sim +cd accel-sim-framework +git checkout $ACCELSIM_BRANCH +source ./gpu-simulator/setup_environment.sh +make -j -C ./gpu-simulator + +# Get rodinia traces +rm -rf ./hw_run/rodinia_2.0-ft +wget https://engineering.purdue.edu/tgrogers/accel-sim/traces/tesla-v100/latest/rodinia_2.0-ft.tgz +mkdir -p ./hw_run +tar -xzvf rodinia_2.0-ft.tgz -C ./hw_run +rm rodinia_2.0-ft.tgz + +# Run rodinia traces +./util/job_launching/run_simulations.py -C QV100-SASS -B rodinia_2.0-ft -T ./hw_run/rodinia_2.0-ft/9.1 -N myTest +./util/job_launching/monitor_func_test.py -v -N myTest -- cgit v1.3