Unverified Commit 8b47bad5 authored by Hongzhi (Steve), Chen's avatar Hongzhi (Steve), Chen Committed by GitHub
Browse files

[Misc] Remove unnecessary clean up before build to accelerate incremental build. (#5267)



* remove unnecessary clean up.

* more

---------
Co-authored-by: default avatarSteve <ubuntu@ip-172-31-34-29.ap-northeast-1.compute.internal>
parent eff16b61
...@@ -2,7 +2,6 @@ ...@@ -2,7 +2,6 @@
# Helper script to build dgl sparse libraries for PyTorch # Helper script to build dgl sparse libraries for PyTorch
set -e set -e
rm -rf build
mkdir -p build mkdir -p build
mkdir -p $BINDIR/dgl_sparse mkdir -p $BINDIR/dgl_sparse
cd build cd build
...@@ -24,7 +23,6 @@ if [ $# -eq 0 ]; then ...@@ -24,7 +23,6 @@ if [ $# -eq 0 ]; then
cp -v $CPSOURCE $BINDIR/dgl_sparse cp -v $CPSOURCE $BINDIR/dgl_sparse
else else
for PYTHON_INTERP in $@; do for PYTHON_INTERP in $@; do
rm -rf *
$CMAKE_COMMAND $CMAKE_FLAGS -DPYTHON_INTERP=$PYTHON_INTERP .. $CMAKE_COMMAND $CMAKE_FLAGS -DPYTHON_INTERP=$PYTHON_INTERP ..
make -j make -j
cp -v $CPSOURCE $BINDIR/dgl_sparse cp -v $CPSOURCE $BINDIR/dgl_sparse
......
...@@ -2,7 +2,6 @@ ...@@ -2,7 +2,6 @@
# Helper script to build tensor adapter libraries for PyTorch # Helper script to build tensor adapter libraries for PyTorch
set -e set -e
rm -rf build
mkdir -p build mkdir -p build
mkdir -p $BINDIR/tensoradapter/pytorch mkdir -p $BINDIR/tensoradapter/pytorch
cd build cd build
...@@ -21,7 +20,6 @@ if [ $# -eq 0 ]; then ...@@ -21,7 +20,6 @@ if [ $# -eq 0 ]; then
cp -v $CPSOURCE $BINDIR/tensoradapter/pytorch cp -v $CPSOURCE $BINDIR/tensoradapter/pytorch
else else
for PYTHON_INTERP in $@; do for PYTHON_INTERP in $@; do
rm -rf *
$CMAKE_COMMAND $CMAKE_FLAGS -DPYTHON_INTERP=$PYTHON_INTERP .. $CMAKE_COMMAND $CMAKE_FLAGS -DPYTHON_INTERP=$PYTHON_INTERP ..
make -j make -j
cp -v $CPSOURCE $BINDIR/tensoradapter/pytorch cp -v $CPSOURCE $BINDIR/tensoradapter/pytorch
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment