-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathenv.sh
executable file
·26 lines (26 loc) · 995 Bytes
/
env.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
# sudo apt install opencl-clhpp-headers for CL headers
export PRJ_PATH=$(pwd)/designs
export STREAM_VSA_PATH=$(pwd)
# if designs dir is not present, create it
if [ ! -d "$PRJ_PATH" ]; then
mkdir $PRJ_PATH
fi
if [ ! -d "$STREAM_VSA_PATH/auto_compile/data/onnx" ]; then
mkdir $STREAM_VSA_PATH/auto_compile/data/onnx
fi
if [ ! -d "$STREAM_VSA_PATH/auto_compile/data/post_dse_architectures" ]; then
mkdir $STREAM_VSA_PATH/auto_compile/data/post_dse_architectures
fi
if [ ! -d "$STREAM_VSA_PATH/auto_compile/data/post_dse_models" ]; then
mkdir $STREAM_VSA_PATH/auto_compile/data/post_dse_models
fi
if [ ! -d "$STREAM_VSA_PATH/auto_compile/data/pre_dse_models" ]; then
mkdir $STREAM_VSA_PATH/auto_compile/data/pre_dse_models
fi
if [ ! -d "$STREAM_VSA_PATH/auto_compile/data/dse_reports" ]; then
mkdir $STREAM_VSA_PATH/auto_compile/data/dse_reports
fi
if [ ! -d "$STREAM_VSA_PATH/auto_compile/data/insts" ]; then
mkdir $STREAM_VSA_PATH/auto_compile/data/insts
fi
echo 'done'