Skip to content

Fix two test cases TEST_CPPCONTRIB_SA_DECODE.D64_Residual1x9_PQ8 and TEST_CPPCONTRIB_SA_DECODE.D256_IVF1024_PQ16 for AIX #3352

@KamathForAIX

Description

@KamathForAIX

Summary

The two test cases TEST_CPPCONTRIB_SA_DECODE.D256_IVF1024_PQ16 and TEST_CPPCONTRIB_SA_DECODE.D256_IVF1024_PQ16 are failing in AIX due to an endianness issue.

These two test cases use COARSE BITS = 16 and use unit16_t data type which needs to be aligned correctly to big endian. This issue is similar to #3346 .

Platform

OS: AIX

Faiss version: Master branch

Installed from: compiled by yourself

Faiss compilation options: Standard cmake options

Reproduction instructions

Run ctest after build on any big endian machine.

I have fixed this issues by making changes in faiss/cppcontrib/sa_decode/Level2-inl.h. Kindly let me know what you think.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions