-
Notifications
You must be signed in to change notification settings - Fork 7.5k
[Faiss] Fix dependencies #18780
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
Merged
Merged
[Faiss] Fix dependencies #18780
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
22072f0
Merge pull request #1 from microsoft/master
bobuc-havok 21c2b0f
fixed targets
bobuc-havok ede3104
bumped port version
bobuc-havok 9c9886f
updated sha
bobuc-havok 8256afc
lapack-reference should always write into lapack
bobuc-havok 224ddbe
lapack-reference sha
bobuc-havok 9c366b8
Fixed clapack target
bobuc-havok b36d033
versions
bobuc-havok a4f940b
sha
bobuc-havok 8619695
ensure cmake finds the cuda compiler
bobuc-havok 7fc597e
sha
bobuc-havok File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,34 @@ | ||
| diff --git a/cmake/faiss-config.cmake.in b/cmake/faiss-config.cmake.in | ||
| index 43ea9d4c..437a7f81 100644 | ||
| --- a/cmake/faiss-config.cmake.in | ||
| +++ b/cmake/faiss-config.cmake.in | ||
| @@ -4,4 +4,7 @@ | ||
| # This source code is licensed under the BSD-style license found in the | ||
| # LICENSE file in the root directory of this source tree. | ||
|
|
||
| +find_dependency(OpenMP REQUIRED) | ||
| +find_dependency(BLAS REQUIRED) | ||
| +find_dependency(LAPACK REQUIRED) | ||
| include("${CMAKE_CURRENT_LIST_DIR}/faiss-targets.cmake") | ||
| diff --git a/faiss/CMakeLists.txt b/faiss/CMakeLists.txt | ||
| index 51680fd1..691f52c2 100644 | ||
| --- a/faiss/CMakeLists.txt | ||
| +++ b/faiss/CMakeLists.txt | ||
| @@ -148,14 +148,14 @@ find_package(OpenMP REQUIRED) | ||
| target_link_libraries(faiss PRIVATE OpenMP::OpenMP_CXX) | ||
|
|
||
| find_package(MKL) | ||
| -if(MKL_FOUND) | ||
| +if(0) | ||
| target_link_libraries(faiss PRIVATE ${MKL_LIBRARIES}) | ||
| else() | ||
| find_package(BLAS REQUIRED) | ||
| - target_link_libraries(faiss PRIVATE ${BLAS_LIBRARIES}) | ||
| + target_link_libraries(faiss PRIVATE BLAS::BLAS) | ||
|
|
||
| find_package(LAPACK REQUIRED) | ||
| - target_link_libraries(faiss PRIVATE ${LAPACK_LIBRARIES}) | ||
| + target_link_libraries(faiss PRIVATE LAPACK::LAPACK) | ||
| endif() | ||
|
|
||
| install(TARGETS faiss |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.