Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
88 commits
Select commit Hold shift + click to select a range
504ec1b
impl
kmrmt Jan 19, 2026
c8a04c6
fix
kmrmt Jan 20, 2026
681aac7
fix
kmrmt Jan 20, 2026
2c16bcc
impl vqueue
kmrmt Jan 26, 2026
53a1f76
fix
kmrmt Jan 26, 2026
fce6dca
impl
kmrmt Jan 29, 2026
c1109b7
coverage
kmrmt Jan 29, 2026
c6b8f68
fix
kmrmt Jan 29, 2026
321ea6f
fix
kmrmt Feb 2, 2026
8401747
fix
kmrmt Feb 2, 2026
d3aab56
fix
kmrmt Feb 2, 2026
f3302f1
update go
kmrmt Feb 3, 2026
63afc9d
:robot: Update license headers / Format go codes and yaml files
vdaas-ci Feb 3, 2026
018e171
Implement NGT metrics collection in Rust agent (#3463)
kmrmt Feb 4, 2026
8bb36ed
fix
kmrmt Feb 10, 2026
15c8871
fix
kmrmt Feb 10, 2026
e3bb220
:robot: Update license headers / Format go codes and yaml files
vdaas-ci Feb 10, 2026
0599048
fix
kmrmt Feb 10, 2026
635b91d
Reflect KVS settings in QBG service configuration (#3475)
kmrmt Feb 14, 2026
e52ffae
refactor
kmrmt Feb 14, 2026
d4e8a72
:robot: Update license headers / Format go codes and yaml files
vdaas-ci Feb 16, 2026
03514ed
fix
kmrmt Feb 16, 2026
8e492ab
fix
kmrmt Feb 16, 2026
618282c
fix
kmrmt Feb 16, 2026
f2672f4
fix
kmrmt Feb 16, 2026
0c6b30f
fix
kmrmt Feb 16, 2026
7594a39
lint
kmrmt Feb 16, 2026
f977e00
fix
kmrmt Feb 16, 2026
17d08e8
refactor
kmrmt Feb 16, 2026
be0c827
:robot: Update license headers / Format go codes and yaml files
vdaas-ci Feb 16, 2026
34bfb51
fix
kmrmt Feb 19, 2026
9b51917
fix
kmrmt Feb 19, 2026
df75de0
fix
kmrmt Feb 21, 2026
48176b9
Setup E2E v2 configuration and Health Check Server for Rust QBG Agent…
kmrmt Feb 23, 2026
c2904ee
Merge branch 'main' into feature/rust/integrate-agent
kmrmt Feb 23, 2026
6c854c7
:robot: Update license headers / Format go codes and yaml files
vdaas-ci Feb 23, 2026
e144728
fix
kmrmt Feb 24, 2026
9246805
fix
kmrmt Feb 24, 2026
3dcd5ec
fix
kmrmt Feb 24, 2026
444aafa
fix
kmrmt Feb 24, 2026
cf97763
fix
kmrmt Feb 24, 2026
6ce519d
fix
kmrmt Feb 24, 2026
3c0c7d6
fix
kmrmt Feb 24, 2026
f81e5aa
fix
kmrmt Feb 25, 2026
a8e930c
:robot: Update license headers / Format go codes and yaml files
vdaas-ci Feb 25, 2026
553d7de
fix
kmrmt Feb 25, 2026
e9a1020
fix
kmrmt Feb 25, 2026
0348eaf
fix
kmrmt Feb 26, 2026
66e0875
:robot: Update license headers / Format go codes and yaml files
vdaas-ci Feb 27, 2026
16cd123
add version
kmrmt Feb 27, 2026
0fe4604
:robot: Update license headers / Format go codes and yaml files
vdaas-ci Feb 27, 2026
15cb3b4
fix for coderabbit
kmrmt Feb 27, 2026
372df6e
fix for coderabbit
kmrmt Feb 27, 2026
8ba441c
:robot: Update license headers / Format go codes and yaml files
vdaas-ci Feb 27, 2026
987ffdd
fix for deepsource
kmrmt Mar 5, 2026
32ec80a
fix for deepsource
kmrmt Mar 5, 2026
02580e7
fix for deepsource
kmrmt Mar 5, 2026
6508d5c
fix for deepsource
kmrmt Mar 5, 2026
0f5a325
fix for deepsource
kmrmt Mar 5, 2026
9995fc2
fix for deepsource
kmrmt Mar 5, 2026
203e92d
fix for deepsource
kmrmt Mar 5, 2026
9f95124
fix for deepsource
kmrmt Mar 5, 2026
8a961a3
:robot: Update license headers / Format go codes and yaml files
vdaas-ci Mar 5, 2026
b002665
fix
kmrmt Mar 9, 2026
33d2fab
fix
kmrmt Mar 9, 2026
9a285a2
fix
kmrmt Mar 9, 2026
7606e44
:robot: Update license headers / Format go codes and yaml files
vdaas-ci Mar 9, 2026
6eb553b
fix
kmrmt Mar 16, 2026
53b86ba
Merge branch 'main' into feature/rust/integrate-agent
kmrmt Mar 16, 2026
8368731
update deps
kmrmt Mar 17, 2026
bd82c26
fix test
kmrmt Mar 19, 2026
2eb57a8
fix
kmrmt Mar 22, 2026
e1a339c
fix
kmrmt Mar 23, 2026
490a962
fix
kmrmt Mar 25, 2026
e2d0dc3
update go
kmrmt Mar 25, 2026
7531180
fix
kmrmt Mar 25, 2026
a576d05
fix
kmrmt Mar 25, 2026
49e0840
:robot: Update license headers / Format go codes and yaml files
vdaas-ci Mar 25, 2026
7749b72
fix go test
kmrmt Mar 26, 2026
e4b0454
fix
kmrmt Mar 27, 2026
d800477
fix
kmrmt Mar 31, 2026
f6f14eb
:robot: Update license headers / Format go codes and yaml files
vdaas-ci Apr 1, 2026
597765a
Merge branch 'main' into feature/rust/integrate-agent
kmrmt Apr 4, 2026
fc19c98
:robot: Update license headers / Format go codes and yaml files
vdaas-ci Apr 4, 2026
1a3b636
add llvm
kmrmt Apr 6, 2026
517b1de
fix
kmrmt Apr 6, 2026
bb91b71
fix
kmrmt Apr 6, 2026
efd1902
Merge branch 'main' into feature/rust/integrate-agent
kmrmt Apr 7, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .deepsource.toml
Original file line number Diff line number Diff line change
Expand Up @@ -81,3 +81,7 @@ enabled = true
[[analyzers]]
name = "test-coverage"
enabled = false

Comment thread
kmrmt marked this conversation as resolved.
[[analyzers]]
name = "rust"
enabled = true
44 changes: 21 additions & 23 deletions .gitfiles
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@
.github/helm/values/values-mirror-01.yaml
.github/helm/values/values-mirror-02.yaml
.github/helm/values/values-profile.yaml
.github/helm/values/values-qbg.yaml
.github/helm/values/values-readreplica.yaml
.github/issue_label_bot.yaml
.github/kubelinter.yaml
Expand Down Expand Up @@ -431,6 +432,7 @@ charts/vald/templates/agent/networkpolicy.yaml
charts/vald/templates/agent/ngt/configmap.yaml
charts/vald/templates/agent/pdb.yaml
charts/vald/templates/agent/priorityclass.yaml
charts/vald/templates/agent/qbg/configmap.yaml
charts/vald/templates/agent/serviceaccount.yaml
charts/vald/templates/agent/sidecar/configmap.yaml
charts/vald/templates/agent/sidecar/svc.yaml
Expand Down Expand Up @@ -2275,24 +2277,40 @@ renovate.json
rust/Cargo.lock
rust/Cargo.toml
rust/bin/agent/Cargo.toml
rust/bin/agent/build.rs
rust/bin/agent/src/config.rs
rust/bin/agent/src/handler.rs
rust/bin/agent/src/handler/common.rs
rust/bin/agent/src/handler/flush.rs
rust/bin/agent/src/handler/health.rs
rust/bin/agent/src/handler/index.rs
rust/bin/agent/src/handler/insert.rs
rust/bin/agent/src/handler/object.rs
rust/bin/agent/src/handler/remove.rs
rust/bin/agent/src/handler/search.rs
rust/bin/agent/src/handler/update.rs
rust/bin/agent/src/handler/upsert.rs
rust/bin/agent/src/lib.rs
rust/bin/agent/src/main.rs
rust/bin/agent/src/metrics.rs
rust/bin/agent/src/middleware.rs
rust/bin/agent/src/service.rs
rust/bin/agent/src/service/daemon.rs
rust/bin/agent/src/service/k8s.rs
rust/bin/agent/src/service/memstore.rs
rust/bin/agent/src/service/metadata.rs
rust/bin/agent/src/service/persistence.rs

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[file name cspell] reported by reviewdog 🐶
Unknown word (argparse) Suggestions: [afmparse, Afmparse, reparse, rapparee, agars]

rust/bin/agent/src/service/qbg.rs

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[file name cspell] reported by reviewdog 🐶
Unknown word (argparse) Suggestions: [afmparse, Afmparse, reparse, rapparee, agars]

rust/bin/agent/src/version.rs

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[file name cspell] reported by reviewdog 🐶
Unknown word (argparse) Suggestions: [afmparse, Afmparse, reparse, rapparee, agars]

rust/bin/agent/tests/integration_test.rs

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[file name cspell] reported by reviewdog 🐶
Unknown word (argparse) Suggestions: [afmparse, Afmparse, reparse, rapparee, agars]

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[file name cspell] reported by reviewdog 🐶
Unknown word (argparse) Suggestions: [afmparse, Afmparse, reparse, rapparee, agars]

rust/bin/meta/Cargo.toml
rust/bin/meta/src/config.rs
rust/bin/meta/src/handler.rs
rust/bin/meta/src/handler/meta.rs
rust/bin/meta/src/main.rs
rust/bin/meta/src/test_client.rs
rust/libs/algorithm/Cargo.toml
rust/libs/algorithm/src/error.rs
rust/libs/algorithm/src/lib.rs
rust/libs/algorithms/faiss/Cargo.toml
rust/libs/algorithms/faiss/src/lib.rs
Expand All @@ -2317,51 +2335,30 @@ rust/libs/kvs/src/map/types.rs
rust/libs/kvs/src/map/unidirectional_map.rs
rust/libs/observability/Cargo.toml
rust/libs/observability/src/config.rs
rust/libs/observability/src/error.rs
rust/libs/observability/src/lib.rs
rust/libs/observability/src/macros.rs
rust/libs/observability/src/observability.rs
rust/libs/observability/src/tracing.rs

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[file name cspell] reported by reviewdog 🐶
Unknown word (LIBCXX) Suggestions: [lrcx, LRCX, LINUX, LIVOX, Linux]

rust/libs/proto/Cargo.toml
rust/libs/proto/build.rs
rust/libs/proto/src/core/mod.rs
rust/libs/proto/src/core/v1/core.v1.tonic.rs
rust/libs/proto/src/core/v1/mod.rs
rust/libs/proto/src/discoverer/mod.rs
rust/libs/proto/src/discoverer/v1/discoverer.v1.tonic.rs
rust/libs/proto/src/discoverer/v1/mod.rs
rust/libs/proto/src/filter/egress/mod.rs
rust/libs/proto/src/filter/egress/v1/filter.egress.v1.tonic.rs
rust/libs/proto/src/filter/egress/v1/mod.rs
rust/libs/proto/src/filter/ingress/mod.rs
rust/libs/proto/src/filter/ingress/v1/filter.ingress.v1.tonic.rs
rust/libs/proto/src/filter/ingress/v1/mod.rs
rust/libs/proto/src/filter/mod.rs
rust/libs/proto/src/google/mod.rs
rust/libs/proto/src/google/rpc/mod.rs
rust/libs/proto/src/google/rpc/status.rs
rust/libs/proto/src/lib.rs
rust/libs/proto/src/meta/mod.rs
rust/libs/proto/src/meta/v1/meta.v1.tonic.rs
rust/libs/proto/src/meta/v1/mod.rs
rust/libs/proto/src/mirror/mod.rs
rust/libs/proto/src/mirror/v1/mirror.v1.tonic.rs
rust/libs/proto/src/mirror/v1/mod.rs
rust/libs/proto/src/payload/mod.rs
rust/libs/proto/src/payload/v1/mod.rs
rust/libs/proto/src/payload/v1/payload.v1.rs
rust/libs/proto/src/payload/v1/payload.v1.serde.rs
rust/libs/proto/src/rpc/mod.rs
rust/libs/proto/src/rpc/v1/mod.rs
rust/libs/proto/src/rpc/v1/rpc.v1.rs
rust/libs/proto/src/rpc/v1/rpc.v1.serde.rs
rust/libs/proto/src/rpc/v1/rpc.v1.tonic.rs
rust/libs/proto/src/sidecar/mod.rs
rust/libs/proto/src/sidecar/v1/mod.rs
rust/libs/proto/src/sidecar/v1/sidecar.v1.tonic.rs
rust/libs/proto/src/tikv/tikv.rs
rust/libs/proto/src/tikv/tikv.serde.rs
rust/libs/proto/src/tikv/tikv.tonic.rs
rust/libs/proto/src/vald/mod.rs
rust/libs/proto/src/vald/v1/mod.rs
rust/libs/proto/src/vald/v1/vald.v1.tonic.rs
rust/libs/proto/wkt.proto
rust/libs/vqueue/Cargo.toml
Expand Down Expand Up @@ -2400,6 +2397,7 @@ tests/v2/e2e/assets/readreplica.yaml
tests/v2/e2e/assets/rollout.yaml
tests/v2/e2e/assets/stream_crud.yaml
tests/v2/e2e/assets/unary_crud.yaml
tests/v2/e2e/assets/unary_crud_qbg.yaml
tests/v2/e2e/config/config.go
tests/v2/e2e/config/enums.go
tests/v2/e2e/crud/agent_test.go
Expand Down
81 changes: 81 additions & 0 deletions .github/helm/values/values-qbg.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
#
# Copyright (C) 2019-2026 vdaas.org vald team <vald@vdaas.org>
#
# Licensed under the Apache License, Version 2.0 (the "License");
# You may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
defaults:
logging:
level: debug
networkPolicy:
enabled: true
gateway:
lb:
enabled: true
minReplicas: 1
hpa:
enabled: false
resources:
requests:
cpu: 100m
memory: 50Mi
Comment thread
kmrmt marked this conversation as resolved.
gateway_config:
index_replica: 3
agent:
algorithm: qbg
minReplicas: 3
maxReplicas: 10
podManagementPolicy: Parallel
hpa:
enabled: false
resources:
requests:
cpu: 100m
memory: 50Mi
Comment thread
kmrmt marked this conversation as resolved.
image:
repository: vdaas/vald-agent
qbg:
dimension: 784
index_path: "/var/lib/vald/index"
auto_index_check_duration: "30s"
auto_save_index_duration: "35m"
auto_index_duration_limit: "24h"
auto_index_length: 100
initial_delay_max_duration: "3m"
bulk_insert_chunk_size: 10
data_type: "float"
internal_data_type: "float"
distance_type: "l2"
enable_in_memory_mode: false
discoverer:
minReplicas: 1
hpa:
enabled: false
resources:
requests:
cpu: 100m
memory: 50Mi
Comment thread
kmrmt marked this conversation as resolved.
manager:
index:
replicas: 1
resources:
requests:
cpu: 100m
memory: 30Mi
Comment thread
kmrmt marked this conversation as resolved.
indexer:
auto_index_duration_limit: 2m
auto_index_check_duration: 30s
auto_index_length: 1000
corrector:
enabled: false
suspend: true
schedule: "1 2 3 4 5"
25 changes: 21 additions & 4 deletions .github/workflows/coverage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,19 +64,36 @@ jobs:
- name: Set Git config
run: |
git config --global --add safe.directory ${GITHUB_WORKSPACE}
- name: Run coverage
- name: Run Go coverage
continue-on-error: true
run: |
make coverage
- name: Upload coverage report to Codecov
make coverage/go
- name: Upload go coverage report to Codecov
uses: codecov/codecov-action@57e3a136b779b570ffcdbf80b3bdc90e7fab3de2 # v6.0.0
with:
token: ${{secrets.CODECOV_TOKEN}}
files: ./coverage.out
- name: Upload coverage report to deepsource
flags: go
- name: Upload go coverage report to deepsource
run: |
mv ./coverage.out ./cover.out
curl https://deepsource.io/cli | sh
./bin/deepsource report --analyzer test-coverage --key go --value-file ./cover.out
env:
DEEPSOURCE_DSN: ${{ secrets.DEEPSOURCE_DSN }}
- name: Run Rust coverage
continue-on-error: true
run: |
make coverage/rust
- name: Upload rust coverage report to Codecov
uses: codecov/codecov-action@57e3a136b779b570ffcdbf80b3bdc90e7fab3de2 # v6.0.0
with:
token: ${{secrets.CODECOV_TOKEN}}
files: ./rust-coverage.out
flags: rust
- name: Upload rust coverage report to deepsource
run: |
curl https://deepsource.io/cli | sh
./bin/deepsource report --analyzer test-coverage --key rust --value-file ./rust-coverage.out
env:
Comment thread
kmrmt marked this conversation as resolved.
Comment thread
kmrmt marked this conversation as resolved.
DEEPSOURCE_DSN: ${{ secrets.DEEPSOURCE_DSN }}
13 changes: 12 additions & 1 deletion .github/workflows/e2e.v2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ jobs:
const baseInclude = [
{ scenario: "stream_crud", deployment: "helm-chart", cluster: "k3d", environment: "null" },
{ scenario: "unary_crud", deployment: "helm-chart", cluster: "k3d", environment: "null" },
{ scenario: "unary_crud_qbg", deployment: "helm-chart", cluster: "k3d", environment: "qbg" },
{ scenario: "multi_crud", deployment: "helm-chart", cluster: "k3d", environment: "null" },
{ scenario: "rollout", deployment: "helm-chart", cluster: "k3d", environment: "null" },
{ scenario: "stream_crud", deployment: "helm-operator", cluster: "k3d", environment: "null" },
Expand Down Expand Up @@ -146,12 +147,22 @@ jobs:
if: ${{ matrix.environment == 'management' }}
run: |
echo "HELM_EXTRA_OPTIONS=\"--values .github/helm/values/values-index-management-jobs.yaml\"" >> $GITHUB_ENV
- name: Set values file for deployment
if: ${{ matrix.deployment == 'helm-chart' && matrix.environment != 'mirror' && matrix.scenario != 'readreplica' }}
run: |
if [[ "${{ matrix.environment }}" == "profile" ]]; then
echo "VALUES_FILE=values-profile.yaml" >> $GITHUB_ENV
elif [[ "${{ matrix.environment }}" == "qbg" ]]; then
echo "VALUES_FILE=values-qbg.yaml" >> $GITHUB_ENV
else
echo "VALUES_FILE=values-lb.yaml" >> $GITHUB_ENV
fi
Comment thread
kmrmt marked this conversation as resolved.
- name: Deploy Vald by Helm Chart
if: ${{ matrix.deployment == 'helm-chart' && matrix.environment != 'mirror' && matrix.scenario != 'readreplica' }}
uses: ./.github/actions/e2e-deploy-vald
with:
helm_extra_options: "${{ steps.setup_e2e.outputs.HELM_EXTRA_OPTIONS }}"
values: .github/helm/values/values-${{ 'profile' == matrix.environment && matrix.environment || 'lb' }}.yaml
values: .github/helm/values/${{ env.VALUES_FILE }}
wait_for_selector: "app=vald-lb-gateway"
- name: Deploy Vald Read Replica
if: ${{ 'readreplica' == matrix.scenario }}
Expand Down
37 changes: 37 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ K3S_VERSION := $(eval K3S_VERSION := $(shell cat versions/K3S_VERSION))$(K3S_VER
KIND_VERSION := $(eval KIND_VERSION := $(shell cat versions/KIND_VERSION))$(KIND_VERSION)
KUBECTL_VERSION := $(eval KUBECTL_VERSION := $(shell cat versions/KUBECTL_VERSION))$(KUBECTL_VERSION)
KUBELINTER_VERSION := $(eval KUBELINTER_VERSION := $(shell cat versions/KUBELINTER_VERSION))$(KUBELINTER_VERSION)
LLVM_OPENMP_VERSION := $(eval LLVM_OPENMP_VERSION := $(shell cat versions/LLVM_OPENMP_VERSION))$(LLVM_OPENMP_VERSION)
NGT_VERSION := $(eval NGT_VERSION := $(shell cat versions/NGT_VERSION))$(NGT_VERSION)
OPERATOR_SDK_VERSION := $(eval OPERATOR_SDK_VERSION := $(shell cat versions/OPERATOR_SDK_VERSION))$(OPERATOR_SDK_VERSION)
OTEL_OPERATOR_VERSION := $(eval OTEL_OPERATOR_VERSION := $(shell cat versions/OTEL_OPERATOR_VERSION))$(OTEL_OPERATOR_VERSION)
Expand Down Expand Up @@ -826,6 +827,10 @@ version/kind:
version/helm:
@echo $(HELM_VERSION)

.PHONY: version/llvm-openmp
version/llvm-openmp:
@echo $(LLVM_OPENMP_VERSION)

.PHONY: version/yq
version/yq:
@echo $(YQ_VERSION)
Expand All @@ -840,6 +845,7 @@ ngt/install: $(USR_LOCAL)/include/NGT/Capi.h
$(USR_LOCAL)/include/NGT/Capi.h:
git clone --depth 1 --branch v$(NGT_VERSION) https://github.com/NGT-labs/NGT $(TEMP_DIR)/NGT-$(NGT_VERSION)
cd $(TEMP_DIR)/NGT-$(NGT_VERSION) && \
sed -i '5,16d' CMakeLists.txt && \
Comment thread
kmrmt marked this conversation as resolved.
cmake -DCMAKE_BUILD_TYPE=Release \
-DCMAKE_POLICY_VERSION_MINIMUM=$(CMAKE_VERSION) \
-DBUILD_SHARED_LIBS=OFF \
Expand All @@ -858,6 +864,37 @@ $(USR_LOCAL)/include/NGT/Capi.h:
rm -rf $(TEMP_DIR)/NGT-$(NGT_VERSION)
ldconfig

.PHONY: llvm-openmp/install
## install LLVM OpenMP static runtime
llvm-openmp/install: $(LIB_PATH)/libomp.a
$(LIB_PATH)/libomp.a:
curl -fsSL https://github.com/llvm/llvm-project/releases/download/llvmorg-$(LLVM_OPENMP_VERSION)/llvm-project-$(LLVM_OPENMP_VERSION).src.tar.xz -o $(TEMP_DIR)/llvm-project-$(LLVM_OPENMP_VERSION).src.tar.xz
tar -C $(TEMP_DIR) -xf $(TEMP_DIR)/llvm-project-$(LLVM_OPENMP_VERSION).src.tar.xz
cmake -S $(TEMP_DIR)/llvm-project-$(LLVM_OPENMP_VERSION).src/openmp \
-B $(TEMP_DIR)/llvm-openmp-build \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_POLICY_VERSION_MINIMUM=$(CMAKE_VERSION) \
-DCMAKE_INSTALL_PREFIX=$(USR_LOCAL) \
-DCMAKE_C_COMPILER=clang \
-DCMAKE_CXX_COMPILER=clang++ \
-DCMAKE_C_FLAGS="-flto=thin" \
-DCMAKE_CXX_FLAGS="-flto=thin" \
-DCMAKE_EXE_LINKER_FLAGS="-fuse-ld=lld" \
-DCMAKE_SHARED_LINKER_FLAGS="-fuse-ld=lld" \
-DCMAKE_MODULE_LINKER_FLAGS="-fuse-ld=lld" \
-DLIBOMP_ENABLE_SHARED=OFF \
-DLIBOMP_USE_HWLOC=OFF \
-DOPENMP_ENABLE_LIBOMP_PROFILING=OFF \
-DOPENMP_ENABLE_LIBOMPTARGET=OFF \
-DOPENMP_ENABLE_OMPT_TOOLS=OFF
cmake --build $(TEMP_DIR)/llvm-openmp-build --target omp -j$(CORES)
install -Dm644 $(TEMP_DIR)/llvm-openmp-build/runtime/src/libomp.a $(LIB_PATH)/libomp.a
rm -rf \
$(TEMP_DIR)/llvm-project-$(LLVM_OPENMP_VERSION).src.tar.xz \
$(TEMP_DIR)/llvm-project-$(LLVM_OPENMP_VERSION).src \
$(TEMP_DIR)/llvm-openmp-build
ldconfig

.PHONY: faiss/install
## install Faiss
faiss/install: $(LIB_PATH)/libfaiss.a
Expand Down
8 changes: 4 additions & 4 deletions Makefile.d/build.mk
Original file line number Diff line number Diff line change
Expand Up @@ -127,11 +127,11 @@ example/client/client:
$(eval CGO_ENABLED = 1)
$(call go-example-build,example/client,-linkmode 'external',$(LDFLAGS) $(HDF5_LDFLAGS), cgo,$(HDF5_VERSION),$@)

rust/target/release/agent:
pushd rust && cargo build -p agent --release && popd
rust/target/release/agent: llvm-openmp/install
cargo build --manifest-path rust/Cargo.toml -p agent --release

rust/target/debug/agent:
pushd rust && cargo build -p agent && popd
rust/target/debug/agent: llvm-openmp/install
cargo build --manifest-path rust/Cargo.toml -p agent
Comment thread
kmrmt marked this conversation as resolved.

tests/v2/e2e/e2e:
$(eval CGO_ENABLED = 1)
Expand Down
9 changes: 8 additions & 1 deletion Makefile.d/dependencies.mk
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ update/libs: \
update/kind \
update/kube-linter \
update/kubectl \
update/llvm-openmp \
update/ngt \
update/prometheus-stack \
update/protobuf \
Expand Down Expand Up @@ -108,7 +109,7 @@ rust/deps: \
rust/install
rustup toolchain install $(RUST_VERSION)
rustup default $(RUST_VERSION)
$(CARGO_HOME)/bin/cargo install cargo-edit --force
$(CARGO_HOME)/bin/cargo install cargo-edit cargo-llvm-cov --force
cd $(ROOTDIR)/rust \
&& $(CARGO_HOME)/bin/cargo update \
&& $(CARGO_HOME)/bin/cargo upgrade --incompatible \
Expand Down Expand Up @@ -248,6 +249,12 @@ update/kube-linter:
curl -fsSL https://api.github.com/repos/stackrox/kube-linter/releases/latest | \
grep -Po '"tag_name": "\K.*?(?=")' > $(ROOTDIR)/versions/KUBELINTER_VERSION

.PHONY: update/llvm-openmp
## update llvm openmp version
update/llvm-openmp:
curl -fsSL https://api.github.com/repos/llvm/llvm-project/releases/latest | \
grep -Po '"tag_name": "\Kllvmorg-\K.*?(?=")' > $(ROOTDIR)/versions/LLVM_OPENMP_VERSION

# .PHONY: update/otel-operator
# ## update otel-operator version
# update/otel-operator:
Expand Down
Loading
Loading