Giter Club home page Giter Club logo

Comments (13)

rhayes777 avatar rhayes777 commented on July 23, 2024

Hi Max. Could you try putting your code in a function or using if __name__ == "__main__"?

Something like:

if __name__ == "__main__":
    # your code goes here.

from pyautolens.

MAX22110 avatar MAX22110 commented on July 23, 2024

Yes, I’m going to try

from pyautolens.

MAX22110 avatar MAX22110 commented on July 23, 2024

It seems the fitting procedure has been started successfully, it's running. I've used
if name == "main":
# your code goes here.

from pyautolens.

rhayes777 avatar rhayes777 commented on July 23, 2024

from pyautolens.

MAX22110 avatar MAX22110 commented on July 23, 2024

Do you mean the module spawn.py?

from pyautolens.

Jammy2211 avatar Jammy2211 commented on July 23, 2024

@rhayes777 Any advise for how I should build this into example scripts to ensure it doesnt crop up again? Would be annoying to have extra lines of code (e.g. if name == "main") in every script.

from pyautolens.

rhayes777 avatar rhayes777 commented on July 23, 2024

I don't think there is anyway to avoid this exception on MacOS doing multiprocessing without that check. I'll have a dig just in case.

from pyautolens.

MAX22110 avatar MAX22110 commented on July 23, 2024

Hi, I’m afraid (though I’m not sure this is the true reason) there is some problem with the solution you have found.
In fact whenever I launch the script with that command you suggested, I’m leaved with tons of background python multiprocessing running process and this gives me an out of memory problem. I have to kill all of them manually. I repeat, I don’t know if the reason is that command, but I’ve never had this problem before.

from pyautolens.

Jammy2211 avatar Jammy2211 commented on July 23, 2024

@rhayes777 I think we need to stress-test parallelization of multiple PYthon versions (3.6 -> 3.9) and for different numpy / numba versions.

I suspect this issue hasnt cropped up before because I am used to using 3.6.

from pyautolens.

rhayes777 avatar rhayes777 commented on July 23, 2024

from pyautolens.

MAX22110 avatar MAX22110 commented on July 23, 2024

Files.zip

from pyautolens.

Jammy2211 avatar Jammy2211 commented on July 23, 2024

They are on numpy==1.21.5, and I think numpy threading could be the cause of this (Albeit it could be a separate issue with multiprocessing + dynesty).

from pyautolens.

Jammy2211 avatar Jammy2211 commented on July 23, 2024

Also on Linux (windows subsystem for linux techncially)

from pyautolens.

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.