#include #include #include #include #include #include #include #include #include #include #include namespace migraph { namespace gpu { std::vector target::get_passes(migraph::context& gctx) const { auto& ctx = any_cast(gctx); // clang-format off return { dead_code_elimination{}, auto_contiguous{}, simplify_reshapes{}, dead_code_elimination{}, lowering{ctx}, eliminate_workspace{}, eliminate_contiguous{}, dead_code_elimination{}, write_literals{}, eliminate_allocation{}, check_context{}, dead_code_elimination{} }; // clang-format on } std::string target::name() const { return "miopen"; } migraph::context target::get_context() const { return context{share(make_obj(&miopenCreate)), share(create_rocblas_handle_ptr())}; } } // namespace gpu } // namespace migraph