Skip to content

Commit

Permalink
Merge branch 'main' into faster_foreach_op
Browse files Browse the repository at this point in the history
  • Loading branch information
Wrench-Git committed Aug 1, 2024
2 parents fc9d86e + dffdfe1 commit fd9306c
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 5 deletions.
16 changes: 11 additions & 5 deletions dipu/scripts/ci/muxi/ci_muxi_script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,20 +18,26 @@ function build_dipu() {
cmake_maca --build "$path" --parallel 20 2>&1 | tee "${path}/build.log"
}

function build_diopi_lib() {
# for reference only
function build_diopi_lib_dyn() {
# export PYTHONPATH="${YOU_TORCH_FOR_DIOPI}:${PYTHONPATH}"
cd third_party/DIOPI/impl
sh scripts/build_impl.sh clean
sh scripts/build_impl.sh muxi || exit -1
sh scripts/build_impl.sh muxi_dyload || exit -1
cd -
}


case $1 in
"build_dipu")
build_dipu # "-DWITH_DIOPI_LIBRARY=${DIOPI_ROOT}"
build_dipu
;;
"build_diopi_dyn")
build_diopi_lib_dyn
;;
"build_dipu_only")
builddipu "-DWITH_DIOPI_LIBRARY=DISABLE" ;;
# build_dipu "-DWITH_DIOPI_LIBRARY=DISABLE"
build_dipu "-DWITH_DIOPI_LIBRARY=${DIOPI_DYN_ROOT}"
;;
*)
echo "[ERROR] Incorrect option: $1" && exit 1 ;;
esac
13 changes: 13 additions & 0 deletions dipu/scripts/ci/nv/ci_nv_script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,15 @@ function build() {
cmake --build "$OUTPUT" --parallel 8 2>&1 | tee "${OUTPUT}/build.log"
}

# for reference only
function build_diopi_lib_dyn() {
# export PYTHONPATH="${YOU_TORCH_FOR_DIOPI}:${PYTHONPATH}"
cd third_party/DIOPI/impl
sh scripts/build_impl.sh clean
sh scripts/build_impl.sh torch_dyload || exit -1
cd -
}

case $1 in
"build_dipu")
clean
Expand All @@ -31,9 +40,13 @@ case $1 in
"build_dipu_dev")
build "${@:2}"
;;
"build_diopi_dyn")
build_diopi_lib_dyn
;;
"build_dipu_only")
clean
build "-DWITH_DIOPI_LIBRARY=DISABLE"
# build "-DWITH_DIOPI_LIBRARY=${DIOPI_DYN_ROOT}"
;;
*)
echo "[ERROR] Incorrect option: $1" && exit 1
Expand Down

0 comments on commit fd9306c

Please sign in to comment.