GithubHelp home page GithubHelp logo

Comments (4)

icavan avatar icavan commented on August 17, 2024

Yes. This is expected behavior.

We do require our users to run both sides in a short time window if using SPU directly. If you wanna make life easier, you could try to call PSI in Secretflow, which will help dispatch MPI PSI codes to both sides simultaneously.


BTW, if you do want to play with the core c++ API. The link timeout could be set by calling void SetRecvTimeout(uint32_t recv_timeout_ms); in https://github.com/secretflow/yasl/blob/beta/yasl/link/context.h#L163. Our simple_psi example just serves as a simple demo for experiencing the core PSI API. You could play and adjust timeout as you needed.

from spu.

Cryptographer63 avatar Cryptographer63 commented on August 17, 2024

Yes. This is expected behavior.

We do require our users to run both sides in a short time window if using SPU directly. If you wanna make life easier, you could try to call PSI in Secretflow, which will help dispatch MPI PSI codes to both sides simultaneously.

BTW, if you do want to play with the core c++ API. The link timeout could be set by calling void SetRecvTimeout(uint32_t recv_timeout_ms); in https://github.com/secretflow/yasl/blob/beta/yasl/link/context.h#L163. Our simple_psi example just serves as a simple demo for experiencing the core PSI API. You could play and adjust timeout as you needed.

Thank you for your reply!

Secretflow is too big, I just need the PSI module. Excuse me, why is it designed this way? Are there any real issues to consider?

I'll try using SetRecvTimeout to see if that solves my problem.

I think the C++ API is still very important, after all, these APIs are closer to the bottom layer, and many developers like me can have more room to play.

from spu.

icavan avatar icavan commented on August 17, 2024

Yes. This is expected behavior.
We do require our users to run both sides in a short time window if using SPU directly. If you wanna make life easier, you could try to call PSI in Secretflow, which will help dispatch MPI PSI codes to both sides simultaneously.
BTW, if you do want to play with the core c++ API. The link timeout could be set by calling void SetRecvTimeout(uint32_t recv_timeout_ms); in https://github.com/secretflow/yasl/blob/beta/yasl/link/context.h#L163. Our simple_psi example just serves as a simple demo for experiencing the core PSI API. You could play and adjust timeout as you needed.

Thank you for your reply!

Secretflow is too big, I just need the PSI module. Excuse me, why is it designed this way? Are there any real issues to consider?

I'll try using SetRecvTimeout to see if that solves my problem.

I think the C++ API is still very important, after all, these APIs are closer to the bottom layer, and many developers like me can have more room to play.

We do plan to open source all layers of the SecretFlow stack, including the C++ core API layer. Since we still have lots of pending optimizations waiting for formal security review and open source procedure, you might need to wait for a few months to get better API documentation and performance.

I did not expect you guys will play the c++ core API this quick. Let me know what you need. This might affect some priority decisions for where we should improve first.

from spu.

rivertalk avatar rivertalk commented on August 17, 2024

Fixed in latest beta branch, closing...

from spu.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.