Code Monkey home page Code Monkey logo

Comments (3)

beyretb avatar beyretb commented on June 12, 2024

Hello,

To my knowledge Unity manages anything related to computing resources (both CPU and GPU) and I would assume that if only a single core is used it's because only one is needed. Also, the AnimalAI environment doesn't particularly make use of multithreading.

Have you noticed the environment being a bottleneck?

from animalai-olympics.

ironbar avatar ironbar commented on June 12, 2024

It seems to be the bottleneck. During train only one core of the cpu is being used and the gpu is almost idle. Even when using a large number of arenas like 36 only one core is used.

from animalai-olympics.

beyretb avatar beyretb commented on June 12, 2024

I just got confirmation that the base code for ML Agents (which we built on top of) does not use multithreading. The rest of Unity (rendering, physics...) does use it.

I did some tests a few months back for up to 16 agents and it was still faster to have only one environment running rather than several ones. But I guess you might want to try and run some tests yourself if you find a good way to have several instances of the environment running on several cores.

from animalai-olympics.

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.