Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[VL] Refine cmake flags to decrease normal build time #3485

Merged
merged 2 commits into from
Nov 6, 2023

Conversation

Yohahaha
Copy link
Contributor

@Yohahaha Yohahaha commented Oct 23, 2023

Move duckdb and test_util targets under BUILD_TESTS flag to decrease build time, and modify related build scripts.
normal means without benchmark/test.

@github-actions
Copy link

Thanks for opening a pull request!

Could you open an issue for this pull request on Github Issues?

https://github.com/oap-project/gluten/issues

Then could you also rename commit message and pull request title in the following format?

[GLUTEN-${ISSUES_ID}][COMPONENT]feat/fix: ${detailed message}

See also:

@github-actions
Copy link

Run Gluten Clickhouse CI

@Yohahaha Yohahaha changed the title [VL] Move duckdb targets to BUILD_TESTS scope to decrease compile time [VL] Refine cmake flags to decrease normal build time Oct 23, 2023
@github-actions
Copy link

Run Gluten Clickhouse CI

@github-actions
Copy link

Run Gluten Clickhouse CI

@Yohahaha
Copy link
Contributor Author

@rui-mo @PHILO-HE could you help review this patch? thanks!

@@ -103,7 +103,7 @@ if [ "$SKIP_BUILD_EP" != "ON" ]; then
cd $GLUTEN_DIR/ep/build-velox/src
./get_velox.sh --enable_hdfs=$ENABLE_HDFS --build_protobuf=$BUILD_PROTOBUF --enable_s3=$ENABLE_S3
./build_velox.sh --enable_s3=$ENABLE_S3 --build_type=$BUILD_TYPE --enable_hdfs=$ENABLE_HDFS \
--enable_ep_cache=$ENABLE_EP_CACHE --build_benchmarks=$BUILD_BENCHMARKS
--enable_ep_cache=$ENABLE_EP_CACHE --build_tests=$BUILD_TESTS
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we remove build_benchmarks option here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I find we never use this option, and Gluten seems not need too, BUILD_TESTS is enough.

--build_benchmarks=*)
ENABLE_BENCHMARK=("${arg#*=}")
--build_tests=*)
ENABLE_TESTS=("${arg#*=}")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same question.

COMPILE_OPTION="-DVELOX_ENABLE_PARQUET=ON"
if [ $ENABLE_BENCHMARK == "OFF" ]; then
COMPILE_OPTION="$COMPILE_OPTION -DVELOX_BUILD_TESTING=OFF -DVELOX_BUILD_TEST_UTILS=ON"
COMPILE_OPTION="-DVELOX_ENABLE_PARQUET=ON -DVELOX_BUILD_TESTING=OFF -DVELOX_BUILD_TEST_UTILS=OFF -DVELOX_ENABLE_DUCKDB=OFF"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suppose parquet compilation is not needed for ORC users. Better to keep it as optional.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

previous parquet option is enabled by default, I keep it as original.

I suppose parquet compilation is not needed for ORC users

We should not separate users with file format, more is better.

COMPILE_OPTION="$COMPILE_OPTION -DVELOX_BUILD_TESTING=OFF -DVELOX_BUILD_TEST_UTILS=ON"
COMPILE_OPTION="-DVELOX_ENABLE_PARQUET=ON -DVELOX_BUILD_TESTING=OFF -DVELOX_BUILD_TEST_UTILS=OFF -DVELOX_ENABLE_DUCKDB=OFF"
if [ $ENABLE_BENCHMARK == "ON" ]; then
COMPILE_OPTION="$COMPILE_OPTION -DVELOX_BUILD_BENCHMARKS=ON"
Copy link
Contributor

@PHILO-HE PHILO-HE Nov 2, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your fix!
Considering --build_benchmarks option is being removed, do we need to keep this part?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for review, I keep both build_benchmarks and build_tests here.

Copy link

github-actions bot commented Nov 6, 2023

Run Gluten Clickhouse CI

@PHILO-HE
Copy link
Contributor

PHILO-HE commented Nov 6, 2023

We just updated velox. Please do a code rebase. Thanks!

fix

fix
fix

fix
Copy link

github-actions bot commented Nov 6, 2023

Run Gluten Clickhouse CI

@Yohahaha
Copy link
Contributor Author

Yohahaha commented Nov 6, 2023

We just updated velox. Please do a code rebase. Thanks!

Could you help review again? thanks!

Copy link
Contributor

@PHILO-HE PHILO-HE left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Thanks!

@PHILO-HE PHILO-HE merged commit bd7abeb into apache:main Nov 6, 2023
17 checks passed
@Yohahaha Yohahaha deleted the move_duckdb branch November 6, 2023 12:58
@Yohahaha
Copy link
Contributor Author

Yohahaha commented Nov 6, 2023

Thank you!

@GlutenPerfBot
Copy link
Contributor

===== Performance report for TPCH SF2000 with Velox backend, for reference only ====

query log/native_3485_time.csv log/native_master_11_05_2023_16e287450_time.csv difference percentage
q1 34.27 34.85 0.584 101.71%
q2 24.63 25.12 0.492 102.00%
q3 36.24 40.11 3.866 110.67%
q4 37.36 37.09 -0.265 99.29%
q5 71.11 71.44 0.328 100.46%
q6 8.34 9.10 0.760 109.11%
q7 84.53 87.61 3.083 103.65%
q8 87.15 85.22 -1.931 97.78%
q9 120.89 121.12 0.233 100.19%
q10 53.56 51.83 -1.727 96.78%
q11 20.38 19.68 -0.701 96.56%
q12 27.15 28.01 0.866 103.19%
q13 48.72 48.61 -0.104 99.79%
q14 16.79 19.14 2.352 114.01%
q15 32.39 33.03 0.634 101.96%
q16 16.43 16.10 -0.325 98.02%
q17 102.89 102.08 -0.809 99.21%
q18 148.67 149.04 0.368 100.25%
q19 15.71 18.25 2.542 116.18%
q20 30.02 30.91 0.896 102.98%
q21 225.04 222.95 -2.095 99.07%
q22 13.08 13.47 0.390 102.98%
total 1255.32 1264.76 9.437 100.75%

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants