This is an automated email from the ASF dual-hosted git repository.
vega pushed a commit to branch ci-docker-staging
in repository https://gitbox.apache.org/repos/asf/tvm-vta.git
The following commit(s) were added to refs/heads/ci-docker-staging by this push:
new 85e68e4 update cpptest
85e68e4 is described below
commit 85e68e4c96fa28f2a8016bb2097c388bf9a90dd1
Author: Luis Vega <[email protected]>
AuthorDate: Sat Aug 28 00:47:34 2021 +0000
update cpptest
---
tests/scripts/task_tvm_cpptest.sh | 12 +++++++++++-
1 file changed, 11 insertions(+), 1 deletion(-)
diff --git a/tests/scripts/task_tvm_cpptest.sh
b/tests/scripts/task_tvm_cpptest.sh
index bd8ea77..2e8555f 100755
--- a/tests/scripts/task_tvm_cpptest.sh
+++ b/tests/scripts/task_tvm_cpptest.sh
@@ -25,10 +25,20 @@ cd tvm
export LD_LIBRARY_PATH="lib:${LD_LIBRARY_PATH:-}"
+# to avoid CI thread throttling.
+export TVM_BIND_THREADS=0
+export OMP_NUM_THREADS=1
+
# Remove existing testcases
rm -f build/*_test
-make cpptest -j8
+make cpptest -j2
+
+# "make crttest" requires USE_MICRO to be enabled, which is not always the
case.
+if grep crttest build/Makefile > /dev/null; then
+ make crttest # NOTE: don't parallelize, due to issue with build deps.
+fi
+
for test in build/*_test; do
./$test
done