-
Notifications
You must be signed in to change notification settings - Fork 543
/
Copy pathshort-tests-accelsim.sh
executable file
·39 lines (31 loc) · 1.08 KB
/
short-tests-accelsim.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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