[Other]Add dlpack (#556)

add dlpack
This commit is contained in:
heliqi
2022-11-10 16:00:08 +08:00
committed by GitHub
parent d4995e5468
commit 6bad97351f
38 changed files with 4181 additions and 0 deletions

View File

@@ -0,0 +1,6 @@
#!/bin/bash
make || exit -1
mkdir -p build
cd build
cmake .. || exit -1
make || exit -1

23
third_party/dlpack/tests/scripts/task_lint.sh vendored Executable file
View File

@@ -0,0 +1,23 @@
#!/bin/bash
mkdir -p bin
if [ ! -f bin/lint.py ]; then
echo "Grab linter ..."
wget https://raw.githubusercontent.com/dmlc/dmlc-core/main/scripts/lint.py
mv lint.py bin/lint.py
fi
echo "Check codestyle of c++ code..."
python bin/lint.py dlpack cpp include contrib
echo "Check doxygen generation..."
make doc 2>log.txt
(cat log.txt| grep -v ENABLE_PREPROCESSING |grep -v "unsupported tag") > logclean.txt
echo "---------Error Log----------"
cat logclean.txt
echo "----------------------------"
(cat logclean.txt|grep warning) && exit -1
(cat logclean.txt|grep error) && exit -1
rm logclean.txt
rm log.txt
echo "All checks passed..."