ops.hpp 862 Bytes
Newer Older
1
2
3
4
5
6
7
#ifndef __INFINIOPTEST_OPS_HPP__
#define __INFINIOPTEST_OPS_HPP__
#include "test.hpp"

/*
 * Declare all the tests here
 */
PanZezhong's avatar
PanZezhong committed
8
DECLARE_INFINIOP_TEST(gemm)
9
10
11
12
13
14
15
16
17
18
19
20

#define REGISTER_INFINIOP_TEST(name)                    \
    {                                                   \
        #name,                                          \
        { infiniop_test::name::Test::build,             \
          infiniop_test::name::Test::attribute_names(), \
          infiniop_test::name::Test::tensor_names() }   \
    }

/*
 * Register all the tests here
 */
PanZezhong's avatar
PanZezhong committed
21
22
23
#define TEST_BUILDER_MAPPINGS         \
    {                                 \
        REGISTER_INFINIOP_TEST(gemm), \
24
25
26
    }

namespace infiniop_test {
PanZezhong's avatar
PanZezhong committed
27
28

// Global variable for {op_name: builder} mappings
29
30
31
32
33
extern std::unordered_map<std::string, const TestBuilder> TEST_BUILDERS;

} // namespace infiniop_test

#endif