TransferBench v1.69#341
Merged
Merged
Conversation
## Motivation Adds a performance debug option that disables validation, so only the initialization and actual transfers execute. Previously, `ALWAYS_VALIDATE` was a boolean (0 = validate once at the end, 1 = validate every iteration), with no way to skip validation entirely. This makes it difficult to isolate pure transfer/initialization cost from validation overhead. ## Technical Details Adds a "disable" option to `ALWAYS_VALIDATE` while preserving the existing 0/1 behavior (backward compatible): - `ALWAYS_VALIDATE=-1` — validation **disabled** (init + transfers only) - `ALWAYS_VALIDATE=0` — validate **once at the end** (default, unchanged) - `ALWAYS_VALIDATE=1` — validate **after each iteration** (unchanged) Co-authored-by: Cursor <cursoragent@cursor.com>
nileshnegi
approved these changes
Jul 15, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
TransferBench v1.69 update that (a) fixes several transfer/offset/validation behaviors and (b) changes RDMA/NIC support to be enabled via runtime dlopen/dlsym probing of libibverbs (and DMA-BUF export symbol checks), removing build-host dependencies on libibverbs-dev.
Changes:
- Add runtime-loaded ibverbs support via new
third-party/ibverbs/headers and gate NIC features onIsIbvSymbolsReady()/IsIbvDmabufPresent(). - Add
ALWAYS_VALIDATE < 0mode to disable validation and adjust interactive behavior accordingly. - Fix non-zero byte-offset handling in the DMA executor paths and update version/changelog/build configs for v1.69.
Reviewed changes
Copilot reviewed 11 out of 11 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| third-party/ibverbs/IbvHeader.hpp | Adds a minimal ibverbs ABI header used by the runtime loader and NIC executor without relying on system headers. |
| third-party/ibverbs/IbvDynLoad.hpp | Implements dlopen/dlsym loading and availability probing for core RDMA + optional DMA-BUF symbols. |
| src/header/TransferBench.hpp | Switches NIC gating to runtime checks, adds validation-disable mode, and fixes DMA executor offset usage. |
| src/client/Utilities.hpp | Prints a clearer message when validation is disabled. |
| src/client/Topology.hpp | Skips NIC topology output when ibverbs symbols aren’t available at runtime. |
| src/client/EnvVars.hpp | Updates ALWAYS_VALIDATE semantics and gates NIC env var help/printing on runtime ibverbs availability. |
| src/client/Client.cpp | Reports NIC support based on runtime ibverbs loading rather than compile-time flags. |
| Makefile | Removes ibverbs build-time detection/linking and adds -ldl + include path for third-party/ibverbs. |
| CMakeLists.txt | Removes NIC/DMA-BUF opt-in options and always links CMAKE_DL_LIBS while adding third-party/ibverbs includes. |
| CHANGELOG.md | Documents v1.69 additions/fixes. |
| build_packages_local.sh | Drops no-longer-relevant NIC/DMA-BUF CMake flags. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
AtlantaPepsi
force-pushed
the
candidate-1.69-develop
branch
from
July 16, 2026 01:58
2b1cf70 to
1569dfa
Compare
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
RunTransfers()