MCPcopy Create free account
hub / github.com/apache/arrow / GetSupportedHardwareFlags

Function GetSupportedHardwareFlags

cpp/src/arrow/testing/util.cc:243–255  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

241}
242
243std::vector<int64_t> GetSupportedHardwareFlags(
244 const std::vector<int64_t>& candidate_flags) {
245 std::vector<int64_t> hardware_flags;
246 // Always test fallback codepaths
247 hardware_flags.push_back(0);
248 for (const int64_t candidate_flag : candidate_flags) {
249 if (candidate_flag != 0 &&
250 internal::CpuInfo::GetInstance()->IsSupported(candidate_flag)) {
251 hardware_flags.push_back(candidate_flag);
252 }
253 }
254 return hardware_flags;
255}
256
257} // namespace arrow

Callers 2

HardwareFlagsForTestingFunction · 0.85
HardwareFlagsForTestingFunction · 0.85

Calls 2

push_backMethod · 0.80
IsSupportedMethod · 0.45

Tested by 2

HardwareFlagsForTestingFunction · 0.68
HardwareFlagsForTestingFunction · 0.68