Skip to content

Open Source alternative to Algolia + Pinecone and an Easier-to-Use alternative to ElasticSearch ⚡ 🔍 ✨ Fast, typo tolerant, in-memory fuzzy Search Engine for building delightful search experiences

Fix whisper build

ozanarmagan76181abe2f48
diff --git a/bazel/whisper.BUILD b/bazel/whisper.BUILD
index 5ea99460..d49109af 100644
--- a/bazel/whisper.BUILD
+++ b/bazel/whisper.BUILD
@@ -7,15 +7,27 @@ filegroup(
srcs = glob(["**"]),
)
+config_setting(
+ name = "with_cuda",
+ define_values = { "use_cuda": "on" }
+)
+
+print("CUDA: " + str(select({
+ ":with_cuda": True,
+ "//conditions:default": False,
+})))
+
+load("@cuda_home_repo//:cuda_home.bzl", "CUDA_HOME")
cmake(
name = "whisper",
cache_entries= select({
- ":wih_cuda": {
+ ":with_cuda": {
'BUILD_SHARED_LIBS': 'OFF',
'WHISPER_BUILD_EXAMPLES': 'OFF',
- 'WHISPER_BUILD_TESTS': 'OFF'
- 'WHISPER_BUILD_CUBLAS': 'ON'
+ 'WHISPER_BUILD_TESTS' : 'OFF',
+ 'WHISPER_CUBLAS': 'ON',
+ 'CMAKE_CUDA_COMPILER': CUDA_HOME + "/bin/nvcc",
},
"//conditions:default": {
'BUILD_SHARED_LIBS': 'OFF',
@@ -26,9 +38,10 @@ cmake(
build_args = [
"--", "-j8"
],
+
lib_source = "//:whisper_srcs",
- tags = ["no-sandbox"],
out_static_libs = ["static/libwhisper.a"],
+ tags=["requires-network","no-sandbox"],
)
cc_library(