diff options
author | Giorgio Arena <giorgio.arena@arm.com> | 2017-08-23 16:36:24 +0100 |
---|---|---|
committer | Anthony Barbier <anthony.barbier@arm.com> | 2018-11-02 16:35:24 +0000 |
commit | 9fe414430c3c989b1cdc79d41e031495aed2cb7c (patch) | |
tree | 5f893eeb81fe75824918273f49171c85f108fe4e /src/core/CL/OpenCL.cpp | |
parent | 580f4c7f6c2cbe320c606eb6ba73b3f4a20791ef (diff) | |
download | ComputeLibrary-9fe414430c3c989b1cdc79d41e031495aed2cb7c.tar.gz |
COMPMID-452 CL Generic Depthwise Convolution implementation.
Change-Id: I115e48fe6ce5e281f3791aa5d80fdc754cdd2b5e
Reviewed-on: http://mpd-gerrit.cambridge.arm.com/85082
Tested-by: Kaizen <jeremy.johnson+kaizengerrit@arm.com>
Reviewed-by: Gian Marco Iodice <gianmarco.iodice@arm.com>
Diffstat (limited to 'src/core/CL/OpenCL.cpp')
-rw-r--r-- | src/core/CL/OpenCL.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/core/CL/OpenCL.cpp b/src/core/CL/OpenCL.cpp index 0f44ad999f..c997116df5 100644 --- a/src/core/CL/OpenCL.cpp +++ b/src/core/CL/OpenCL.cpp @@ -99,6 +99,7 @@ bool CLSymbols::load(const std::string &library) clReleaseMemObject = reinterpret_cast<clReleaseMemObject_func>(dlsym(handle, "clReleaseMemObject")); clGetDeviceInfo = reinterpret_cast<clGetDeviceInfo_func>(dlsym(handle, "clGetDeviceInfo")); clGetDeviceIDs = reinterpret_cast<clGetDeviceIDs_func>(dlsym(handle, "clGetDeviceIDs")); + clRetainEvent = reinterpret_cast<clRetainEvent_func>(dlsym(handle, "clRetainEvent")); dlclose(handle); @@ -617,3 +618,16 @@ cl_int clGetDeviceInfo(cl_device_id device, return CL_OUT_OF_RESOURCES; } } + +cl_int clRetainEvent(cl_event event) +{ + auto func = arm_compute::CLSymbols::get().clRetainEvent; + if(func != nullptr) + { + return func(event); + } + else + { + return CL_OUT_OF_RESOURCES; + } +} |