Code Monkey home page Code Monkey logo

Comments (4)

rohan-sawhney avatar rohan-sawhney commented on July 17, 2024

Thanks @calvariomind! Unfortunately, the current version is not thread safe because of how it is linked with Cholmod. However, it is possible to make the Cholmod dependency thread safe. I've listed this issue as an enhancement :)

from boundary-first-flattening.

calvariomind avatar calvariomind commented on July 17, 2024

Thanks for the quick reply rohan :)
If I understand correctly, the limitation is on cholmod library, not on BFF. Can I do something on my side to resolve the problem without changing BFF code? Maybe linking with a different version of cholmod?
Thanks

from boundary-first-flattening.

rohan-sawhney avatar rohan-sawhney commented on July 17, 2024

I should correct myself - some of the BFF linear algebra code will have to be modified, starting with not declaring a global cholmod Common object but rather cholmod Common objects local to each thread. I'll have to put some more thought on how exactly to architect this within the BFF codebase. If you don't want to dig into cholmod, another option might be to replace the implementation of the BFF linear algebra wrappers (such as DenseMatrix, SparseMatrix, Cholesky) with another library such as Eigen.

from boundary-first-flattening.

calvariomind avatar calvariomind commented on July 17, 2024

Thanks again for your answers. I will continue using BFF as is, without multi-threading. It is fast enough for my current purposes. I will be watching for new versions, and reactivate the multi-threading in case you decide to make those changes.
Congratulations for a great library :)

from boundary-first-flattening.

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.