Skip to content

Speed-up rust build#138

Merged
rapids-bot[bot] merged 2 commits intorapidsai:branch-24.06from
benfred:speedup_rust_build
May 17, 2024
Merged

Speed-up rust build#138
rapids-bot[bot] merged 2 commits intorapidsai:branch-24.06from
benfred:speedup_rust_build

Conversation

@benfred
Copy link
Copy Markdown
Contributor

@benfred benfred commented May 17, 2024

We are using cmake-rs to link the c++ cmake build and the rust build. This had the side effect of causing us to always recompile all of libcuvs with the rust bindings. With the migration of the libraft ann code to cuvs, this has led to the rust bindings being the bottleneck in building.

Get around this by creating a new dummy cmake target that depends on cuvs, and having this target only build libcuvs if needed.

@benfred benfred added improvement Improves an existing functionality non-breaking Introduces a non-breaking change labels May 17, 2024
@benfred benfred requested review from a team as code owners May 17, 2024 20:35
@github-actions github-actions Bot added the CMake label May 17, 2024
@benfred benfred marked this pull request as draft May 17, 2024 20:35
We are using cmake-rs to link the c++ cmake build and the rust build.
This had the side effect of causing us to always recompile all of libcuvs
with the rust bindings. With the migration of the libraft ann code to cuvs,
this has led to the rust bindings being the bottleneck in building.

Get around this by creating a new dummy cmake target that depends on cuvs,
and having this target only build libcuvs if needed.
@benfred benfred force-pushed the speedup_rust_build branch from 3f73a8e to f99d3f4 Compare May 17, 2024 20:36
@cjnolet
Copy link
Copy Markdown
Member

cjnolet commented May 17, 2024

/merge

@benfred benfred marked this pull request as ready for review May 17, 2024 22:28
@benfred
Copy link
Copy Markdown
Contributor Author

benfred commented May 17, 2024

/merge

@rapids-bot rapids-bot Bot merged commit 85aa026 into rapidsai:branch-24.06 May 17, 2024
@benfred benfred deleted the speedup_rust_build branch May 17, 2024 22:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CMake improvement Improves an existing functionality non-breaking Introduces a non-breaking change

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants