Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: 求解答一下bucket_psi 用 kkrt求交时buffer.size() == static_cast<int64_t>(sizeof(rs_pack)). 32v128报错 #917

Closed
mrhph opened this issue Nov 13, 2024 · 1 comment

Comments

@mrhph
Copy link

mrhph commented Nov 13, 2024

Issue Type

Performance

Modules Involved

PSI

Have you reproduced the bug with SPU HEAD?

Yes

Have you searched existing issues?

Yes

SPU Version

0.3.3b2

OS Platform and Distribution

Linux Ubuntu20.04

Python Version

3.8

Compiler Version

No response

Current Behavior?

用KKRT_PSI_2PC 协议求交时报错,求解答一下
RuntimeError: what:
[Enforce fail at external/yacl/yacl/crypto/primitives/ot/x86_asn_ot_interface.cc:95] buffer.size() == static_cast<int64_t>(sizeof(rs_pack)). 32v128
stacktrace:
11113 19:19:18. 151160 947174 external/com_github_brpc_brpc/src/brpc/server.cpp:1173] Server[yacl:: link: : internal: :ReceiverServiceImpll is going to quit.

微信图片_2024-11-13_193617_542

Standalone code to reproduce the issue

bucket_size = 1 << 20
protocol = 'KKRT_PSI_2PC'    

config = psi.BucketPsiConfig(
        psi_type=psi.PsiType.Value(protocol),
        curve_type=psi.CurveType.Value(curve_type),
        broadcast_result=broadcast_result,
        receiver_rank=receiver_rank,
        input_params=psi.InputParams(path=input_path, select_fields=select_fields, precheck=precheck_input),
        output_params=psi.OutputParams(path=output_path, need_sort=need_sort),
        bucket_size=bucket_size
    )

    report = psi.bucket_psi(link_ctx, config)

Relevant log output

No response

@mrhph
Copy link
Author

mrhph commented Nov 14, 2024

是我双方的receiver_rank定义的一不一样导致的,一方receiver_rank=0,一方receiver_rank=1

@mrhph mrhph closed this as completed Nov 14, 2024
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

No branches or pull requests

1 participant