verify.hpp 932 Bytes
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
14
15
16
17
18
19
20
21
void verify_program(const std::string& name,
                    const program& p,
                    compile_options options = compile_options{},
                    double tolerance        = 100);
void verify_instructions(const program& prog,
                         compile_options options = compile_options{},
                         double tolerance        = 80);
void verify_reduced_program(const program& p,
                            compile_options options = compile_options{},
                            double tolerance        = 80);
Paul's avatar
Paul committed
22
23
24
25
26
27

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

#endif