#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 { auto_contiguous{}, simplify_reshapes{}, lowering{ctx}, eliminate_contiguous{}, write_literals{}, 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