GithubHelp home page GithubHelp logo

Training for 2_supervised hung about tutorials HOT 3 CLOSED

torch avatar torch commented on August 18, 2024
Training for 2_supervised hung

from tutorials.

Comments (3)

soumith avatar soumith commented on August 18, 2024

looking into it, I seem to be able to reproduce it on my server as well.

from tutorials.

soumith avatar soumith commented on August 18, 2024

turns out OpenMP coming from the BLAS libraries is the dick over here!
torch.setnumthreads(1) does nothing, but completely turning off system-wide OpenMP with
"export OMP_NUM_THREADS=1"
fixes things, which makes the BLAS library + OpenMP combination the obvious reason.

I am going to try remove OpenBLAS from the ezinstall script and see if there's any bug reports filed in their repo.

To summarize, if you want to fix it for yourself, run this in the shell before running your script:

export OMP_NUM_THREADS=1

This is a bug in the BLAS library on the machine, and the bug has nothing to do with torch. Any program that uses the BLAS library will encounter this bug.

from tutorials.

sanealytics avatar sanealytics commented on August 18, 2024

Thanks for the quick fix! Now I wish I knew how you debugged that too :)

Thanks again.

from tutorials.

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.