Code Monkey home page Code Monkey logo

Comments (6)

williford avatar williford commented on August 11, 2024

The nn backend does not use the GPU. You need to either use the cunn or cudnn backend/library to use the GPU.

from imagenet-multigpu.torch.

andyhahaha avatar andyhahaha commented on August 11, 2024

Hi Soumith,
I have the same problem. I am training Alexnet on 4 GPU. It takes 18 hours per epoch. What is the normal training time per epoch? My training time is much longger than JakeRyan1. Does that caused by the communication between GPUs?

from imagenet-multigpu.torch.

Viresh-R avatar Viresh-R commented on August 11, 2024

Hi Andy, you can reduce the time per epoch by increasing the number of data loading threads(nDonkeys).

from imagenet-multigpu.torch.

soumith avatar soumith commented on August 11, 2024

@JakeRyan1 cudnn backend will be much much faster.
@andyhahaha what is the GPU used?

from imagenet-multigpu.torch.

andyhahaha avatar andyhahaha commented on August 11, 2024

@soumith I use eight Tesla M40

from imagenet-multigpu.torch.

soumith avatar soumith commented on August 11, 2024

@andyhahaha if you use 8 GPUs of anything, you need to install the GPUs in a PCI-e topology that makes sure that all 8 GPUs map to the same CPU. It's likely that you didn't do this, and hence the huge communication slowdown is likely a bottleneck. (this is not torch-specific, but you'll likely see this on any framework).
There's two things you can do to improve your situation.

  1. Install NCCL https://github.com/NVIDIA/nccl and nccl.torch https://github.com/ngimel/nccl.torch
  2. Just use 4-GPUs at a time.

from imagenet-multigpu.torch.

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.