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

Method new_uid

src/caffe/parallel.cpp:179–186  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

177
178template<typename Dtype>
179string NCCL<Dtype>::new_uid() {
180 string uid;
181 uid.resize(NCCL_UNIQUE_ID_BYTES);
182 ncclUniqueId nccl_uid;
183 NCCL_CHECK(ncclGetUniqueId(&nccl_uid));
184 memcpy(&uid[0], &nccl_uid, NCCL_UNIQUE_ID_BYTES); // NOLINT(caffe/alt_fn)
185 return uid;
186}
187
188template<typename Dtype>
189void NCCL<Dtype>::Broadcast() {

Callers 2

trainFunction · 0.80
test_newuidMethod · 0.80

Calls

no outgoing calls

Tested by 1

test_newuidMethod · 0.64