Caffe2 - C++ API
A deep learning, cross platform ML framework
counter_ops_gpu.cc
1 
17 #include "caffe2/core/context_gpu.h"
18 #include "counter_ops.h"
19 
20 namespace caffe2 {
21 REGISTER_CUDA_OPERATOR(CreateCounter, CreateCounterOp<int64_t, CUDAContext>);
22 REGISTER_CUDA_OPERATOR(ResetCounter, ResetCounterOp<int64_t, CUDAContext>);
23 REGISTER_CUDA_OPERATOR(CountDown, CountDownOp<int64_t, CUDAContext>);
24 REGISTER_CUDA_OPERATOR(
25  CheckCounterDone,
26  CheckCounterDoneOp<int64_t, CUDAContext>);
27 REGISTER_CUDA_OPERATOR(CountUp, CountUpOp<int64_t, CUDAContext>);
28 REGISTER_CUDA_OPERATOR(RetrieveCount, RetrieveCountOp<int64_t, CUDAContext>);
29 } // namespace caffe2
Copyright (c) 2016-present, Facebook, Inc.