Skip to content

Add MetaHeader parity test addressing D108793458 review comment (#5935)#5935

Closed
lizhe-ji wants to merge 1 commit into
pytorch:mainfrom
lizhe-ji:export-D109084819
Closed

Add MetaHeader parity test addressing D108793458 review comment (#5935)#5935
lizhe-ji wants to merge 1 commit into
pytorch:mainfrom
lizhe-ji:export-D109084819

Conversation

@lizhe-ji

@lizhe-ji lizhe-ji commented Jun 18, 2026

Copy link
Copy Markdown

Summary:
X-link: https://github.com/facebookresearch/FBGEMM/pull/2853

This diff addresses the review comment in D108793458 inline 1189-1193
about hardcoded magic number 16 in values[j].size() >= 16 and
sizeof(int64_t) offset baking in MetaHeader layout assumptions.

Adds SSDTableBatchedEmbeddingsTest.MetaHeaderParityWithDRAM to verify
SSD hard-coded 16-byte header parsing produces identical output to
DRAM FixedBlockPool::get_metaheader_raw for same MetaHeader bytes.
Keeps production ssd_table_batched_embeddings.h unchanged per follow-up
discussion — hard-coded 16 / 8 remains with comment, test is source of
truth for cross-backend parity.

Updates test BUCK dep to include dram_kv_embedding_inference for
FixedBlockPool header access. No production behavior change.

Reviewed By: vinares

Differential Revision: D109084819

@meta-cla meta-cla Bot added the cla signed label Jun 18, 2026
@meta-codesync meta-codesync Bot changed the title Add MetaHeader parity test addressing D108793458 review comment Add MetaHeader parity test addressing D108793458 review comment (#5935) Jun 19, 2026
lizhe-ji pushed a commit to lizhe-ji/FBGEMM-1 that referenced this pull request Jun 19, 2026
…rch#5935)

Summary:

This diff addresses the review comment in D108793458 inline 1189-1193
about hardcoded magic number 16 in values[j].size() >= 16 and
sizeof(int64_t) offset baking in MetaHeader layout assumptions.

Adds SSDTableBatchedEmbeddingsTest.MetaHeaderParityWithDRAM to verify
SSD hard-coded 16-byte header parsing produces identical output to
DRAM FixedBlockPool::get_metaheader_raw for same MetaHeader bytes.
Keeps production ssd_table_batched_embeddings.h unchanged per follow-up
discussion — hard-coded 16 / 8 remains with comment, test is source of
truth for cross-backend parity.

Updates test BUCK dep to include dram_kv_embedding_inference for
FixedBlockPool header access. No production behavior change.

Differential Revision: D109084819
@lizhe-ji lizhe-ji force-pushed the export-D109084819 branch from 246c305 to b3d9466 Compare June 19, 2026 00:55
lizhe-ji pushed a commit to lizhe-ji/FBGEMM-1 that referenced this pull request Jun 19, 2026
…rch#5935)

Summary:
X-link: facebookresearch/FBGEMM#2853


This diff addresses the review comment in D108793458 inline 1189-1193
about hardcoded magic number 16 in values[j].size() >= 16 and
sizeof(int64_t) offset baking in MetaHeader layout assumptions.

Adds SSDTableBatchedEmbeddingsTest.MetaHeaderParityWithDRAM to verify
SSD hard-coded 16-byte header parsing produces identical output to
DRAM FixedBlockPool::get_metaheader_raw for same MetaHeader bytes.
Keeps production ssd_table_batched_embeddings.h unchanged per follow-up
discussion — hard-coded 16 / 8 remains with comment, test is source of
truth for cross-backend parity.

Updates test BUCK dep to include dram_kv_embedding_inference for
FixedBlockPool header access. No production behavior change.

Differential Revision: D109084819
@lizhe-ji lizhe-ji force-pushed the export-D109084819 branch 2 times, most recently from 5f3cdc6 to a4ee9d4 Compare June 19, 2026 01:49
lizhe-ji pushed a commit to lizhe-ji/FBGEMM-1 that referenced this pull request Jun 19, 2026
…rch#5935)

Summary:
X-link: facebookresearch/FBGEMM#2853


This diff addresses the review comment in D108793458 inline 1189-1193
about hardcoded magic number 16 in values[j].size() >= 16 and
sizeof(int64_t) offset baking in MetaHeader layout assumptions.

Adds SSDTableBatchedEmbeddingsTest.MetaHeaderParityWithDRAM to verify
SSD hard-coded 16-byte header parsing produces identical output to
DRAM FixedBlockPool::get_metaheader_raw for same MetaHeader bytes.
Keeps production ssd_table_batched_embeddings.h unchanged per follow-up
discussion — hard-coded 16 / 8 remains with comment, test is source of
truth for cross-backend parity.

Updates test BUCK dep to include dram_kv_embedding_inference for
FixedBlockPool header access. No production behavior change.

Differential Revision: D109084819
lizhe-ji pushed a commit to lizhe-ji/FBGEMM-1 that referenced this pull request Jun 19, 2026
…rch#5935)

Summary:
X-link: facebookresearch/FBGEMM#2853


This diff addresses the review comment in D108793458 inline 1189-1193
about hardcoded magic number 16 in values[j].size() >= 16 and
sizeof(int64_t) offset baking in MetaHeader layout assumptions.

Adds SSDTableBatchedEmbeddingsTest.MetaHeaderParityWithDRAM to verify
SSD hard-coded 16-byte header parsing produces identical output to
DRAM FixedBlockPool::get_metaheader_raw for same MetaHeader bytes.
Keeps production ssd_table_batched_embeddings.h unchanged per follow-up
discussion — hard-coded 16 / 8 remains with comment, test is source of
truth for cross-backend parity.

Updates test BUCK dep to include dram_kv_embedding_inference for
FixedBlockPool header access. No production behavior change.

Reviewed By: vinares

Differential Revision: D109084819
@lizhe-ji lizhe-ji force-pushed the export-D109084819 branch from a4ee9d4 to 68b13a6 Compare June 19, 2026 03:20
…rch#5935)

Summary:
X-link: facebookresearch/FBGEMM#2853


This diff addresses the review comment in D108793458 inline 1189-1193
about hardcoded magic number 16 in values[j].size() >= 16 and
sizeof(int64_t) offset baking in MetaHeader layout assumptions.

Adds SSDTableBatchedEmbeddingsTest.MetaHeaderParityWithDRAM to verify
SSD hard-coded 16-byte header parsing produces identical output to
DRAM FixedBlockPool::get_metaheader_raw for same MetaHeader bytes.
Keeps production ssd_table_batched_embeddings.h unchanged per follow-up
discussion — hard-coded 16 / 8 remains with comment, test is source of
truth for cross-backend parity.

Updates test BUCK dep to include dram_kv_embedding_inference for
FixedBlockPool header access. No production behavior change.

Reviewed By: vinares

Differential Revision: D109084819
@lizhe-ji lizhe-ji force-pushed the export-D109084819 branch from 68b13a6 to 534e555 Compare June 19, 2026 03:25
@meta-codesync meta-codesync Bot closed this in 17dd8e3 Jun 22, 2026
@meta-codesync meta-codesync Bot added the Merged label Jun 22, 2026
@meta-codesync

meta-codesync Bot commented Jun 22, 2026

Copy link
Copy Markdown
Contributor

This pull request has been merged in 17dd8e3.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant