Coder Social home page Coder Social logo

Comments (2)

vgapsys avatar vgapsys commented on August 11, 2024

Currently, there is no way to set the number of cores. pmx itself is not using multiple threads. Maybe it is one of the rdkit functions that parallelizes on more threads, but so far I have not been able to reproduce the issue. Could you share your inputs for this case?

from pmx.

noahharrison64 avatar noahharrison64 commented on August 11, 2024

Hi Vytautas,
Sorry for my slow reply. So I think it must be one of the underlying modules. I tried setting OS NUM_EXPR_THREADS but this had no effect.

The reason why I wanted to do this was because I was encountering issues with multiprocessing pmx atomMapping and pmx ligandHybrid commands. Today I've realised that the issue was caused by the temporary naming system that was being used in reformatPDB function. I haven't dug into it too much but I think the issue was that when multiple processes were run in parallel, they ended up writing to the same file, and so things were getting messy and more often than not breaking.

I've therefore forked the module and used the tempfile.NamedTemporaryFile() to deal with this, allowing multiprocessing to occur. (I also removed some print statement, for my own purpose)

Thanks,
Noah

from pmx.

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.