Caffe2 - C++ API
A deep learning, cross platform ML framework
mkl_context.cc
1 // #include "caffe2/mkl/utils/mkl_context.h"
2 
3 #include "caffe2/core/event_cpu.h"
4 
5 namespace caffe2 {
6 
7 // MKL events are the same as CPU events
8 
9 REGISTER_EVENT_CREATE_FUNCTION(MKLDNN, EventCreateCPU);
10 REGISTER_EVENT_RECORD_FUNCTION(MKLDNN, EventRecordCPU);
11 REGISTER_EVENT_WAIT_FUNCTION(MKLDNN, MKLDNN, EventWaitCPUCPU);
12 REGISTER_EVENT_WAIT_FUNCTION(MKLDNN, CPU, EventWaitCPUCPU);
13 REGISTER_EVENT_WAIT_FUNCTION(CPU, MKLDNN, EventWaitCPUCPU);
14 REGISTER_EVENT_FINISH_FUNCTION(MKLDNN, EventFinishCPU);
15 
16 REGISTER_EVENT_QUERY_FUNCTION(MKLDNN, EventQueryCPU);
17 REGISTER_EVENT_ERROR_MESSAGE_FUNCTION(MKLDNN, EventErrorMessageCPU);
18 REGISTER_EVENT_SET_FINISHED_FUNCTION(MKLDNN, EventSetFinishedCPU);
19 REGISTER_EVENT_RESET_FUNCTION(MKLDNN, EventResetCPU);
20 
21 } // namespace caffe2
A global dictionary that holds information about what Caffe2 modules have been loaded in the current ...