| 46 | MIGRAPHX_GPU_TEST_PRECOMPILE("add", "mul", "convert") |
| 47 | |
| 48 | static 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 | |
| 62 | TEST_CASE(tanh_shape) |
| 63 | { |
no test coverage detected