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

Function run_lowering

test/gpu/adjust_allocation.cpp:48–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46MIGRAPHX_GPU_TEST_PRECOMPILE("add", "mul", "convert")
47
48static void run_lowering(migraphx::program& p, bool offload_copy = false)
49{
50 auto ctx = migraphx::gpu::context{};
51 migraphx::run_passes(
52 *p.get_main_module(),
53 {migraphx::auto_contiguous{},
54 migraphx::gpu::lowering{&ctx, offload_copy},
55 migraphx::dead_code_elimination{},
56 migraphx::eliminate_contiguous{"gpu::contiguous"},
57 migraphx::dead_code_elimination{},
58 migraphx::replace_allocate{migraphx::gpu::gpu_allocation_model{}, offload_copy},
59 migraphx::dead_code_elimination{}});
60}
61
62TEST_CASE(tanh_shape)
63{

Callers 1

TEST_CASEFunction · 0.70

Calls 2

run_passesFunction · 0.85
get_main_moduleMethod · 0.80

Tested by

no test coverage detected