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)
86 else if(version.find(
"G31") != std::string::npos)
98 if(version.find(
"T600") != std::string::npos)
102 else if(version.find(
"T700") != std::string::npos)
106 else if(version.find(
"T800") != std::string::npos)
121 static std::map<GPUTarget, const std::string> gpu_target_map =
142 return gpu_target_map[target];
147 std::regex mali_regex(R
"(Mali-(.*))"); 148 std::smatch name_parts; 149 const bool found_mali = std::regex_search(device_name, name_parts, mali_regex);
157 const char target = name_parts.str(1)[0];
158 const std::string &version = name_parts.str(1);
160 std::regex future_regex(R
"(.*X)"); 161 const bool is_future_gpu = std::regex_search(version, future_regex);
165 if(target ==
'G' || is_future_gpu)
168 gpu_target = get_bifrost_target(version);
171 gpu_target = get_valhall_target(version);
174 else if(target ==
'T')
176 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.