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

Function is_compiled_gpu_module

test/multi_target/multitarget_test.cpp:59–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57}
58
59static bool is_compiled_gpu_module(const migraphx::module& m)
60{
61 return std::all_of(m.begin(), m.end(), [](const auto& ins) {
62 auto ins_name = ins.name();
63 if(not migraphx::starts_with(ins_name, "@"))
64 {
65 if(not migraphx::starts_with(ins_name, "gpu::") and
66 not migraphx::starts_with(ins_name, "hip::") and
67 not migraphx::starts_with(ins_name, "check_context") and
68 not migraphx::contains(nonprefixed_ops(), ins_name) and not has_target_attr(ins))
69 {
70 return false;
71 }
72 }
73 return true;
74 });
75}
76
77static bool is_compiled_fpga_module(const migraphx::module& m)
78{

Callers 1

check_compiled_programFunction · 0.85

Calls 8

starts_withFunction · 0.85
containsFunction · 0.85
nonprefixed_opsFunction · 0.85
has_target_attrFunction · 0.85
all_ofFunction · 0.50
beginMethod · 0.45
endMethod · 0.45
nameMethod · 0.45

Tested by

no test coverage detected