MCPcopy Create free account
hub / github.com/BVLC/caffe / getDevice

Function getDevice

src/caffe/parallel.cpp:110–114  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

108}
109
110static int getDevice() {
111 int device = 0;
112 CUDA_CHECK(cudaGetDevice(&device));
113 return device;
114}
115
116template<typename Dtype>
117NCCL<Dtype>::NCCL(shared_ptr<Solver<Dtype> > solver)

Callers 1

NCCLMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected