34 if(version.find(
"G77") != std::string::npos)
38 if(version.find(
"G78") != std::string::npos)
42 else if(version.find(
"TODX") != std::string::npos)
54 if(version.find(
"G71") != std::string::npos)
58 else if(version.find(
"G72") != std::string::npos)
62 else if(version.find(
"G51BIG") != std::string::npos)
66 else if(version.find(
"G51LIT") != std::string::npos)
70 else if(version.find(
"G51") != std::string::npos)
74 else if(version.find(
"G52LIT") != std::string::npos)
78 else if(version.find(
"G52") != std::string::npos)
82 else if(version.find(
"G76") != std::string::npos)
94 if(version.find(
"T600") != std::string::npos)
98 else if(version.find(
"T700") != std::string::npos)
102 else if(version.find(
"T800") != std::string::npos)
117 static std::map<GPUTarget, const std::string> gpu_target_map =
138 return gpu_target_map[target];
143 std::regex mali_regex(R
"(Mali-(.*))"); 144 std::smatch name_parts; 145 const bool found_mali = std::regex_search(device_name, name_parts, mali_regex);
153 const char target = name_parts.str(1)[0];
154 const std::string &version = name_parts.str(1);
156 std::regex future_regex(R
"(.*X)"); 157 const bool is_future_gpu = std::regex_search(version, future_regex);
161 if(target ==
'G' || is_future_gpu)
164 gpu_target = get_bifrost_target(version);
167 gpu_target = get_valhall_target(version);
170 else if(target ==
'T')
172 gpu_target = get_midgard_target(version);
GPUTarget get_target_from_name(const std::string &device_name)
Helper function to get the GPU target from a device name.
GPUTarget get_arch_from_target(GPUTarget target)
Helper function to get the GPU arch.
const std::string & string_from_target(GPUTarget target)
Translates a given gpu device target to string.
Copyright (c) 2017-2021 Arm Limited.
GPUTarget
Available GPU Targets.
#define ARM_COMPUTE_LOG_INFO_MSG_CORE(msg)
Log information level message to the core system logger.