Skip to content

Commit

Permalink
Use conan to manage openblas (#351)
Browse files Browse the repository at this point in the history
Signed-off-by: chasingegg <[email protected]>
  • Loading branch information
chasingegg authored Jan 17, 2024
1 parent 5230b6a commit 4a28aaa
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ class KnowhereConan(ConanFile):
"boost:without_test": True,
"fmt:header_only": True,
"with_faiss_tests": False,
"openblas:shared": True,
"openblas:dynamic_arch": True,
}

exports_sources = (
Expand Down Expand Up @@ -80,6 +82,8 @@ def config_options(self):
def configure(self):
if self.options.shared:
self.options.rm_safe("fPIC")
if self.settings.arch == "armv8":
self.options["openblas"].dynamic_arch = False

def requirements(self):
self.requires("boost/1.83.0")
Expand All @@ -96,6 +100,7 @@ def requirements(self):
self.requires("opentelemetry-cpp/1.8.1.1@milvus/dev")
if self.settings.os != "Macos":
self.requires("libunwind/1.7.2")
self.requires("openblas/0.3.23@milvus/dev")
if self.options.with_ut:
self.requires("catch2/3.3.1")
if self.options.with_benchmark:
Expand Down

0 comments on commit 4a28aaa

Please sign in to comment.