forked from squidruge/mlu-ops
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathenv_dumpdata_set.sh
More file actions
28 lines (27 loc) · 843 Bytes
/
env_dumpdata_set.sh
File metadata and controls
28 lines (27 loc) · 843 Bytes
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
#!/bin/bash
usage () {
echo "USAGE: test.sh <options>"
echo
echo "OPTIONS:"
echo " on Set dump data environment variables"
echo " off Unset dump data environment variables"
echo
echo "If MLUOP_GTEST_DUMP_DATA is enabled, the test data will be dumped."
echo "Following files will be generated in build/test dir."
echo " baseline_output_xx, mlu_output_xx, hex_inputx, hex_outputx."
echo
echo "For details, please refer to:"
echo " https://github.com/Cambricon/mlu-ops/blob/master/README.md"
echo
}
if [[ $# == 1 && $1 == "on" ]]; then
export MLUOP_GTEST_DUMP_DATA=ON
export MLUOP_MIN_VLOG_LEVEL=5
elif [[ $# == 1 && $1 == "off" ]]; then
export MLUOP_GTEST_DUMP_DATA=OFF
export MLUOP_MIN_VLOG_LEVEL=0
else
echo "Bad params!!!."
echo
usage
fi