Skip to content

[Feat] Add hashtable device API support#244

Open
rhdong wants to merge 1 commit intoNVIDIA-Merlin:masterfrom
rhdong:hrong/tk-device-api-dev
Open

[Feat] Add hashtable device API support#244
rhdong wants to merge 1 commit intoNVIDIA-Merlin:masterfrom
rhdong:hrong/tk-device-api-dev

Conversation

@rhdong
Copy link
Copy Markdown
Member

@rhdong rhdong commented Feb 4, 2026

Summary

Adds device-side read-only APIs for the hash table with a lightweight device view and tests, plus build system updates to include the new headers and test target.

Key Changes

  • Extracts HashTableBase into include/merlin_hashtable_base.hpp and includes it from merlin_hashtable.cuh.
  • Introduces device-side read-only API in include/merlin_hashtable_device.cuh, including HashTableDeviceView and no-sync lookup helpers.
  • Adds a fast read-only lookup path in kernel_utils.cuh (find_without_lock_readonly_no_sync).
  • Exposes device bucket metadata in HashTable for creating device views.
  • Adds tests in tests/merlin_hashtable_device_api_test.cc.cu for both lookup paths.
  • Updates CMake and Bazel build files to include the new test target and headers.

Tests

  • merlin_hashtable_device_api_test

@rhdong rhdong requested a review from jiashuy February 4, 2026 23:39
@github-actions
Copy link
Copy Markdown

github-actions bot commented Feb 4, 2026

@rhdong rhdong force-pushed the hrong/tk-device-api-dev branch from 2d51bd1 to cae7bab Compare February 5, 2026 01:30
@rhdong
Copy link
Copy Markdown
Member Author

rhdong commented Feb 11, 2026

/blossom-ci

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant