diff options
Diffstat (limited to 'src/core/CL')
-rw-r--r-- | src/core/CL/CLKernelLibrary.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/core/CL/CLKernelLibrary.cpp b/src/core/CL/CLKernelLibrary.cpp index 16bcd50d06..2b843e7785 100644 --- a/src/core/CL/CLKernelLibrary.cpp +++ b/src/core/CL/CLKernelLibrary.cpp @@ -1242,3 +1242,8 @@ std::string CLKernelLibrary::get_device_version() { return _device.getInfo<CL_DEVICE_VERSION>(); } + +cl_uint CLKernelLibrary::get_num_compute_units() +{ + return _device.getInfo<CL_DEVICE_MAX_COMPUTE_UNITS>(); +}
\ No newline at end of file |