MCPcopy Create free account
hub / github.com/ARM-software/ComputeLibrary / get_ddk_version

Method get_ddk_version

src/core/CL/CLCompileContext.cpp:404–416  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

402}
403
404int32_t CLCompileContext::get_ddk_version() const
405{
406 const std::string device_version = _device.device_version();
407 const std::regex ddk_regex("r([0-9]*)p[0-9]");
408 std::smatch ddk_match;
409
410 if (std::regex_search(device_version, ddk_match, ddk_regex))
411 {
412 return std::stoi(ddk_match[1]);
413 }
414
415 return -1;
416}
417GPUTarget CLCompileContext::get_gpu_target() const
418{
419 return _device.target();

Callers 3

configureMethod · 0.80
configureMethod · 0.80
configureMethod · 0.80

Calls 2

stoiFunction · 0.85
device_versionMethod · 0.80

Tested by

no test coverage detected