verify.hpp 1.09 KB
Newer Older
Paul's avatar
Paul committed
1
2
3
4
5
6
7
8
9
#ifndef MIGRAPHX_GUARD_RTGLIB_DRIVER_VERIFY_HPP
#define MIGRAPHX_GUARD_RTGLIB_DRIVER_VERIFY_HPP

#include <migraphx/program.hpp>

namespace migraphx {
namespace driver {
inline namespace MIGRAPHX_INLINE_NS {

10
11
std::vector<argument> run_cpu(program p);
std::vector<argument> run_gpu(program p);
12
13
void verify_program(const std::string& name,
                    const program& p,
14
15
16
                    compile_options options              = compile_options{},
                    const program::parameter_map& inputs = {},
                    double tolerance                     = 100);
17
18
19
20
void verify_instructions(const program& prog,
                         compile_options options = compile_options{},
                         double tolerance        = 80);
void verify_reduced_program(const program& p,
21
22
23
                            compile_options options              = compile_options{},
                            const program::parameter_map& inputs = {},
                            double tolerance                     = 80);
Paul's avatar
Paul committed
24
25
26
27
28
29

} // namespace MIGRAPHX_INLINE_NS
} // namespace driver
} // namespace migraphx

#endif