GithubHelp home page GithubHelp logo

Comments (5)

colesbury avatar colesbury commented on May 3, 2024 2

The first option is the right way to do it. There's a typo in the issue (CUDDA vs CUDA); not sure if you had a typo when you ran it. How did it fail?

from fb.resnet.torch.

hli2020 avatar hli2020 commented on May 3, 2024

Problem solved! I made the typo CUDDA. so silly. thanks! now turn to try imagenet! finger crossed.

from fb.resnet.torch.

ajeetksingh avatar ajeetksingh commented on May 3, 2024

Hi,
I did the exact step as mentioned in the first step of @hli2020 sans the typo, but somehow, it's still assigning the process to other GPUs. Below is the command which I am running:

CUDA_VISIBLE_DEVICES=2,3 th main.lua -dataset cifar10 -nGPU 2 -batchSize 128 -depth 20 -netType resnet -LR 0.005 -nEpochs 150

Assuming I have to run it on the GPUs 2 and 3. GPUs are 0-indexed.

Thanks :)

from fb.resnet.torch.

colesbury avatar colesbury commented on May 3, 2024

@ajeetksingh, what does this print out for you:

CUDA_VISIBLE_DEVICES=2,3 th -lcutorch -e "print(cutorch.getDeviceCount())"

from fb.resnet.torch.

ajeetksingh avatar ajeetksingh commented on May 3, 2024

The command prints 2.

Anyways, I resolved the issue. Apparently, the problem was with mapping of numbers to GPU ids.
e.g. CUDA_VISIBLE_DEVICES=2,3 would correspond to 0th and 1st GPU not the 2nd and 3rd.

So I just changed the command to CUDA_VISIBLE_DEVICES=0,1 and it started running on the 2nd and 3rd. I still don't know, why does it happen? :(

from fb.resnet.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.