MCPcopy Create free account
hub / github.com/android/ndk-samples / Backend

Enum Backend

vectorization/src/main/cpp/benchmark.h:28–43  ·  view source on GitHub ↗

* The available backends for matrix multiplication shown in this sample. */

Source from the content-addressed store, hash-verified

26 * The available backends for matrix multiplication shown in this sample.
27 */
28enum class Backend : uint8_t {
29 /// Auto-vectorization only.
30 kAutoVectorization = 0,
31
32 /// C++ std::simd.
33 kCxxSimd = 1,
34
35 /// Clang's arch-generic vector types.
36 kClangVector = 2,
37
38 /// Clang's built-in matrix type.
39 kClangMatrix = 3,
40
41 /// OpenMP SIMD.
42 kOpenMp = 4,
43};
44
45/// Errors returned by BenchmarkMatrixMultiplication.
46enum class BenchmarkError : int8_t {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected