| 402 | } |
| 403 | |
| 404 | int32_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 | } |
| 417 | GPUTarget CLCompileContext::get_gpu_target() const |
| 418 | { |
| 419 | return _device.target(); |
no test coverage detected