-
Notifications
You must be signed in to change notification settings - Fork 141
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
fix broken build flag, move build to one directory #2442
base: main
Are you sure you want to change the base?
fix broken build flag, move build to one directory #2442
Conversation
3f12185
to
515c986
Compare
@navneet1v @vamshin @jmazanec15 can someone review this fix? Also, I am not sure why the 2 BWC checks are failing and can't re-run the workflows to get them to see if it's a transient things. Can you help me try re-running those? |
Triggered a re run. |
@sam-herman can you rebase your code from main and then we can trigger a run again. I see some changes have been made in main branch which fixes some issues. |
Signed-off-by: Samuel Herman <[email protected]>
Signed-off-by: Samuel Herman <[email protected]>
Signed-off-by: Samuel Herman <[email protected]>
25c356a
to
53943ec
Compare
@navneet1v looks like after the rebase there are even more tests failing, including some of the non-bwc ones. maybe try re-run to check if it's transient? |
@sam-herman i think for main branch since 3.0 is in progress there are a lot of breaking changes. |
Tagging 3.0 release owner here to know when the main branch will be stable since a lot of prs are struck. |
@@ -111,10 +111,10 @@ endif() | |||
if(NOT DEFINED AVX512_SPR_ENABLED) | |||
# Check if the system is Intel(R) Sapphire Rapids or a newer-generation processor | |||
execute_process(COMMAND bash -c "lscpu | grep -q 'GenuineIntel' && lscpu | grep -i 'avx512_fp16' | grep -i 'avx512_bf16' | grep -i 'avx512_vpopcntdq'" OUTPUT_VARIABLE SPR_FLAGS OUTPUT_STRIP_TRAILING_WHITESPACE) | |||
if (AND NOT "${SPR_FLAGS}" STREQUAL "") |
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.
Good catch @sam-herman . @mulugetam Can you check this and make sure this change makes sense?
@@ -333,7 +333,7 @@ task cmakeJniLib(type:Exec) { | |||
workingDir 'jni' | |||
def args = [] | |||
args.add("cmake") | |||
args.add(".") |
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.
Good update. This makes cleaning some much easier. That being said, in the buildJniLib, instead of changing workingDir, can we just do:
make -Cbuild
I worry if we add "/" we might end up having issues with path resolution on different platforms (unless gradle handles this for us)
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.
The windows build seems to work fine https://github.com/opensearch-project/k-NN/actions/runs/13020810027/job/36325044749?pr=2442
thanks @sam-herman. main is messed up right now due to lucene upgrade. On other PRs, weve been developing directly on 2.x and backporting to main to unblock (#2438 ) |
@navneet1v @Vikasht34 Any updates on fixes to BWC and integ tests? |
@sam-herman , Tentative changes to be merged in main by End of Next week . |
Description
Addresses a bug and house cleaning during build.
jni
directory.Related Issues
Resolves #[Issue number to be closed when this PR is merged]
Check List
--signoff
.By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.