MCPcopy Create free account
hub / github.com/ROCm/AMDMIGraphX / print_miopen_warning

Function print_miopen_warning

src/load_save.cpp:66–81  ·  view source on GitHub ↗

MIOpen doesn't support serializing fusion plans with Find-2.0 APIs

Source from the content-addressed store, hash-verified

64
65// MIOpen doesn't support serializing fusion plans with Find-2.0 APIs
66static void print_miopen_warning(const program& p)
67{
68 auto mods = p.get_modules();
69 if(std::any_of(mods.begin(), mods.end(), [](const auto* m) {
70 return std::any_of(m->begin(), m->end(), [](const instruction& i) {
71 return i.name() == "gpu::miopen_fusion";
72 });
73 }))
74 {
75 std::cerr << "[WARNING]: Program has miopen_fusion instructions for which tuned solutions "
76 "are not stored inside serialized MIGraphX program. Consider serializing with "
77 "MIGRAPHX_DISABLE_MIOPEN_FUSION=1 flag set."
78 << std::endl;
79 ;
80 }
81}
82
83std::vector<char> save_buffer(const program& p, const file_options& options)
84{

Callers 1

save_bufferFunction · 0.85

Calls 5

get_modulesMethod · 0.80
any_ofFunction · 0.50
beginMethod · 0.45
endMethod · 0.45
nameMethod · 0.45

Tested by

no test coverage detected