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

Function compile_module

test/jit.cpp:64–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62
63template <class F>
64static std::function<F> compile_module(const migraphx::module& m)
65{
66 migraphx::cpp_generator g;
67 g.fmap([](auto&& name) { return "std::" + name; });
68 g.create_function(g.generate_module(m).set_attributes({"EXPORT extern \"C\""}));
69
70 return compile_function<F>(g.str().insert(0, preamble), m.name());
71}
72
73TEST_CASE(simple_run)
74{

Callers

nothing calls this directly

Calls 6

fmapMethod · 0.80
create_functionMethod · 0.80
generate_moduleMethod · 0.80
insertMethod · 0.45
strMethod · 0.45
nameMethod · 0.45

Tested by

no test coverage detected