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

Function MakeSimdLevelString

cpp/src/arrow/config.cc:53–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51
52template <typename QueryFlagFunction>
53std::string MakeSimdLevelString(QueryFlagFunction&& query_flag) {
54 if (query_flag(CpuInfo::AVX512)) {
55 return "avx512";
56 } else if (query_flag(CpuInfo::AVX2)) {
57 return "avx2";
58 } else if (query_flag(CpuInfo::AVX)) {
59 return "avx";
60 } else if (query_flag(CpuInfo::SSE4_2)) {
61 return "sse4_2";
62 } else {
63 return "none";
64 }
65}
66
67std::optional<std::string> timezone_db_path;
68

Callers 1

GetRuntimeInfoFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected