BVLC / caffe

Caffe: a fast open framework for deep learning.
http://caffe.berkeleyvision.org/
Other
34.01k stars 18.71k forks source link

Why doesn't my GPU data sync with my CPU data? It's a strange problem. I don't kown how to solve it. #6868

Open gw00295652 opened 4 years ago

gw00295652 commented 4 years ago

I try to print CPU data and GPU data in my loss layer Forward_gpu() function like this: LOG(INFO)<<bottom[0]->cpu_data()[0]; LOG(INFO)<<bottom[0]->gpu_data()[0]; Finally, the CPU data was successfully printed, but the CPU data wasn't. And SSD-caffe can run successfully. This is my currnet server information: Ubuntu 14.04 CUDA8.0 cudnn6.0

The same code executed successfully on my other computer.