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

Method Init

src/caffe/util/benchmark.cpp:108–120  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

106}
107
108void Timer::Init() {
109 if (!initted()) {
110 if (Caffe::mode() == Caffe::GPU) {
111#ifndef CPU_ONLY
112 CUDA_CHECK(cudaEventCreate(&start_gpu_));
113 CUDA_CHECK(cudaEventCreate(&stop_gpu_));
114#else
115 NO_GPU;
116#endif
117 }
118 initted_ = true;
119 }
120}
121
122CPUTimer::CPUTimer() {
123 this->initted_ = true;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected