python-2.7gpucaffepycaffe

How can I make ensure caffe using GPU?


Is there any way to ensure caffe using GPU? I was compiled caffe after installing CUDA driver and without CPU_ONLY flag in cmake and while compiling cmake logged detection of CUDA 8.0.

But while train a sample, I doubt it using GPU according nvidia-smi result. How can I ensure?


Solution

  • The surest way I know is to properly configure the solver.prototxt file. Include the line

    solver_mode: GPU

    If you have any specifications for the engine to use in each layer of your model, you'll want to also make sure they refer to GPU software.