3 #include "caffe2/core/allocator.h" 4 #include "caffe2/core/context.h" 5 #include "caffe2/core/logging.h" 6 #include "caffe2/core/tensor.h" 10 CAFFE_KNOWN_TYPE(GLTensor<GLfloat>);
11 CAFFE_KNOWN_TYPE(GLTensor<GLhalf>);
12 CAFFE_KNOWN_TYPE(GLTensor<half>);
15 bool GLContext::initialized =
false;
17 GLContext::GLContext() {
18 CAFFE_ENFORCE(arm_compute::opengles31_is_available());
20 arm_compute::GCScheduler::get().default_init();
25 void EventCreateOPENGL(
const DeviceOption & ,
27 void EventRecordOPENGL(Event * ,
const void * ,
29 void EventWaitOPENGLOPENGL(
const Event * ,
void * ) {}
30 void EventFinishOPENGL(
const Event * ) {}
31 void EventResetOPENGL(Event * ) {}
33 REGISTER_EVENT_CREATE_FUNCTION(OPENGL, EventCreateOPENGL);
34 REGISTER_EVENT_RECORD_FUNCTION(OPENGL, EventRecordOPENGL);
35 REGISTER_EVENT_WAIT_FUNCTION(OPENGL, OPENGL, EventWaitOPENGLOPENGL);
36 REGISTER_EVENT_FINISH_FUNCTION(OPENGL, EventFinishOPENGL);
37 REGISTER_EVENT_RESET_FUNCTION(OPENGL, EventResetOPENGL);
A global dictionary that holds information about what Caffe2 modules have been loaded in the current ...