Code Monkey home page Code Monkey logo

Comments (9)

yjxiong avatar yjxiong commented on August 15, 2024 2

It is OK to run two eval_net.py with 4 workers each. There might be some other error.

from temporal-segment-networks.

xlliu7 avatar xlliu7 commented on August 15, 2024 2

Hi @GBJim
I used to meet this problem too. Try adding CUDA_VISIBLE_DEVICES=0,1,2,3 before the python command, where the numbers indicate the available GPUs , It works fine for me.

from temporal-segment-networks.

yjxiong avatar yjxiong commented on August 15, 2024

This error means you might be requesting more workers than the number of available GPU.

Also, you are running 4 workers using eval_net.py. I don't quite understand the title of this issue.

from temporal-segment-networks.

GBJim avatar GBJim commented on August 15, 2024

@yjxiong
Oh, I get it.
I have 4 GPU cores and have an eval_net.py process running with 4 workers already.
When I run the second process of eval_net.py with 4 workers, the total 8 workers exceeds the amount of my GPU cores and promtps the error messages.

from temporal-segment-networks.

GBJim avatar GBJim commented on August 15, 2024

@yjxiong
Thanks a lot! I will try it again.

from temporal-segment-networks.

GBJim avatar GBJim commented on August 15, 2024

@xlliuplus7
Thanks for the tip!

from temporal-segment-networks.

KnightOfTheMoonlight avatar KnightOfTheMoonlight commented on August 15, 2024

It is strange. I did not add CUDA_VISIBLE_DEVICES=0,1,2,3 or anything else. I can still run two eval_net with 4 workers perfectly.

I have 4 GPU.

from temporal-segment-networks.

KnightOfTheMoonlight avatar KnightOfTheMoonlight commented on August 15, 2024

@xlliu7 http://stackoverflow.com/questions/34775522/tensorflow-mutiple-sessions-with-mutiple-gpus
you mean this ->$ CUDA_VISIBLE_DEVICES=0 python my_script.py # Uses GPU 0. Right?
But I tried, and get error: error = cudaSuccess: (10 vs 0) invalid device ordinal.
Do you have any suggestions?

from temporal-segment-networks.

xlliu7 avatar xlliu7 commented on August 15, 2024

@KnightOfTheMoonlight That's exactly what I mean.
I use a workstation with 4 GPUs + CUDA 7.5 + cuDNN v5. The toolbox was compiled with MPI support.
I found it neccessary to add the "CUDA_VISIBLE_DEVICES" environment to use multiple GPUs. Otherwise I will get the "invalid device ordinal" error. I guess the caffe toolbox fails to detect available GPUs on my workstation. Your problem seems to be opposite to mine.
In fact, you can also mannually specify the dev_id in "eval_net.py". See https://github.com/yjxiong/temporal-segment-networks/blob/master/tools/eval_net.py#L32

from temporal-segment-networks.

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.