GithubHelp home page GithubHelp logo

Comments (6)

HassebJ avatar HassebJ commented on August 20, 2024 1

I was able to fix the issue. On my system echo $CUDA_VISIBLE_DEVICES=NoDevFiles for some reason.
I have two GPUs installed so setting export CUDA_VISIBLE_DEVICES=0,1 fixes the issue and TensorFlow is able to use both of them.

from tensorflowonspark.

HassebJ avatar HassebJ commented on August 20, 2024

Environment
CUDA: 8
CUDNN: 5.0
Python: 2.7.3
Tensorflow: 1.0
Hadoop 2.7.3
Spark 2.0.2

from tensorflowonspark.

leewyang avatar leewyang commented on August 20, 2024

Did you install the GPU version of Tensorflow? If so, please search your yarn logs for a statement that looks like ======== worker:0 ========. You should see a following statement Using GPU: 0 or Using CPU.

from tensorflowonspark.

HassebJ avatar HassebJ commented on August 20, 2024

As it is indicated in the GetStarted_YARN guideline, I checked out the jun_r1.0 branch as I wanted to use TensorFlow 1.0 w/ RDMA as my cluster is equipped with Infiniband.

Does this branch have GPU support?

from tensorflowonspark.

HassebJ avatar HassebJ commented on August 20, 2024

I searched through my YARN logs and found the following:

2017-05-12 19:30:09,956 ERROR (MainThread-26814) 0: Failed to allocate GPU, trying again...
2017-05-12 19:30:30,218 INFO (MainThread-26814) 0: Using GPU: 0
No server factory registered for the given ServerDef: cluster {
  job {
    name: "worker"
    tasks {
      key: 0
      value: "gpu05.cluster:40727"
    }
  }
}
job_name: "worker"
protocol: "grpc_rdma"


And it keeps on repeating. Does that imply that I have properly configured TensorFlowOnSpark for GPUs but it just can not find them when running the jobs, for whatever reason?

from tensorflowonspark.

leewyang avatar leewyang commented on August 20, 2024

Can you try removing the --rdma argument to see if it gets further? It looks like the RDMA support might not be properly compiled. If so, will need help from @junshi15 (who's out this week).

from tensorflowonspark.

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.