-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Build velox_vector_test_lib if VELOX_BUILD_TEST_UTILS is ON #2531
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
Build velox_vector_test_lib if VELOX_BUILD_TEST_UTILS is ON #2531
Conversation
✅ Deploy Preview for meta-velox canceled.
|
275f06c to
3ac0b2b
Compare
3ac0b2b to
3c6d065
Compare
mbasmanova
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@beroyfb Looks good to me, but CI is red. Please, fix before landing.
I edited the PR title and description to comply with the guidelines: https://github.com/facebookincubator/velox/blob/main/CONTRIBUTING.md#code
Please, take a moment to review these for future PRs.
3c6d065 to
b41b4b3
Compare
|
@beroyfb has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
| # limitations under the License. | ||
| add_library(velox_vector_test_lib VectorMaker.cpp VectorTestBase.cpp) | ||
| if(${VELOX_BUILD_TEST_UTILS}) | ||
| add_library(velox_vector_test_lib VectorMaker.cpp VectorTestBase.cpp) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These libraries are required even with VELOX_BUILD_TESTING ; I suspect This is why xsimd doesnt get picked up as its header only.
b41b4b3 to
bbd2d88
Compare
|
@beroyfb has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
|
FYI You are building with -DVELOX_ENABLE_BENCHMARKS_BASIC=ON , but benchmarks require : velox_vector_test_lib to be built; however they wont be built because VELOX_BUILD_TEST_UTILS isnt on ; So the fix is to set VELOX_BUILD_TEST_UTILS to be ON if benchmarks is enabled. |
34b1477 to
b0382b8
Compare
This will allow the applications using Velox to be able to use utilities in vector lib such as vector maker.
b0382b8 to
7169b4f
Compare
|
@beroyfb has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
@kgpai Should we have some logic somewhere to set VELOX_BUILD_TEST_UTILS to ON if VELOX_ENABLE_BENCHMARKS_BASIC is ON? |
|
Can we please merge this PR #2439 which addresses this issue in a clean way? |
majetideepak
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does #2439 help solve this?
| add_library(velox_vector_test_lib VectorMaker.cpp VectorTestBase.cpp) | ||
| if(${VELOX_BUILD_TEST_UTILS} | ||
| OR ${VELOX_BUILD_TESTING} | ||
| OR ${VELOX_ENABLE_BENCHMARKS_BASIC}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Its better to have this logic in the parent CMakeLists rather than have this if logic here as it makes it much harder to reason about what gets built etc.
if (${VELOX_ENABLE_BENCHMARKS_BASIC})
set($VEOX_BUILD_TEST_UTILS ON)
..
endif()
|
@mbasmanova @majetideepak Sorry saw your comments now. |
|
Sure, either way work for me. I just have a big PR that needs this fix: prestodb/presto#18327 |
|
Tried my large PR on #2439 and failed with the same error: |
This is sad. I believe you were getting a different error (for a different library) earlier, no? prestodb/presto#18327 (comment)
CC: @majetideepak @kgpai |
|
@beroyfb I wonder if the failure is because the library was renamed to velox_exec_test_lib. Would you try renaming and rebuilding? |
|
@mbasmanova great point and you right! The following combination made it work: So we are all good. |
|
Hi @beroyfb! Thank you for your pull request. We require contributors to sign our Contributor License Agreement, and yours needs attention. You currently have a record in our system, but the CLA is no longer valid, and will need to be resubmitted. ProcessIn order for us to review and merge your suggested changes, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA. Once the CLA is signed, our tooling will perform checks and validations. Afterwards, the pull request will be tagged with If you have received this in error or have any questions, please contact us at cla@meta.com. Thanks! |
This allows Velox applications to use utilities such as VectorMaker without building all Velox tests.