| 92 | } |
| 93 | |
| 94 | static bool is_compiled_cpu_module(const migraphx::module& m) |
| 95 | { |
| 96 | return std::all_of(m.begin(), m.end(), [](const auto& ins) { |
| 97 | auto ins_name = ins.name(); |
| 98 | // sub is not lowered on CPU backend due to vectorization on non-aligned memory. |
| 99 | if(not migraphx::starts_with(ins_name, "@") and ins_name != "sub") |
| 100 | { |
| 101 | if(not migraphx::starts_with(ins_name, "cpu::") and |
| 102 | not migraphx::starts_with(ins_name, "dnnl::") and |
| 103 | not migraphx::starts_with(ins_name, "check_context") and not has_target_attr(ins) and |
| 104 | not migraphx::contains(nonprefixed_ops(), ins_name)) |
| 105 | { |
| 106 | return false; |
| 107 | } |
| 108 | } |
| 109 | return true; |
| 110 | }); |
| 111 | } |
| 112 | |
| 113 | static bool is_compiled_ref_module(const migraphx::module& m) |
| 114 | { |
no test coverage detected