Commit b89b17b8 authored by Paul's avatar Paul
Browse files

s/miopen_target/target

parent ec81e04a
...@@ -12,7 +12,7 @@ endif() ...@@ -12,7 +12,7 @@ endif()
add_library(migraph_miopen add_library(migraph_miopen
hip.cpp hip.cpp
miopen_target.cpp target.cpp
lowering.cpp lowering.cpp
miopen_write_literals.cpp miopen_write_literals.cpp
rocblas.cpp rocblas.cpp
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
namespace migraph { namespace migraph {
namespace miopen { namespace miopen {
struct miopen_target struct target
{ {
std::string name() const; std::string name() const;
std::vector<pass> get_passes(context& ctx) const; std::vector<pass> get_passes(context& ctx) const;
......
#include <migraph/miopen/miopen_target.hpp> #include <migraph/miopen/target.hpp>
#include <migraph/miopen/lowering.hpp> #include <migraph/miopen/lowering.hpp>
#include <migraph/miopen/miopen_write_literals.hpp> #include <migraph/miopen/miopen_write_literals.hpp>
#include <migraph/miopen/context.hpp> #include <migraph/miopen/context.hpp>
...@@ -6,14 +6,14 @@ ...@@ -6,14 +6,14 @@
namespace migraph { namespace migraph {
namespace miopen { namespace miopen {
std::vector<pass> miopen_target::get_passes(context&) const std::vector<pass> target::get_passes(context&) const
{ {
return {lowering{}, miopen_write_literals{}}; return {lowering{}, miopen_write_literals{}};
} }
std::string miopen_target::name() const { return "miopen"; } std::string target::name() const { return "miopen"; }
context miopen_target::get_context() const context target::get_context() const
{ {
return miopen_context{share(make_obj<miopen_handle>(&miopenCreate)), return miopen_context{share(make_obj<miopen_handle>(&miopenCreate)),
share(create_rocblas_handle_ptr())}; share(create_rocblas_handle_ptr())};
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
#include <migraph/operators.hpp> #include <migraph/operators.hpp>
#include <migraph/generate.hpp> #include <migraph/generate.hpp>
#include <migraph/cpu/cpu_target.hpp> #include <migraph/cpu/cpu_target.hpp>
#include <migraph/miopen/miopen_target.hpp> #include <migraph/miopen/target.hpp>
#include <migraph/miopen/miopen.hpp> #include <migraph/miopen/miopen.hpp>
#include <migraph/miopen/hip.hpp> #include <migraph/miopen/hip.hpp>
#include <migraph/manage_ptr.hpp> #include <migraph/manage_ptr.hpp>
...@@ -27,7 +27,7 @@ migraph::argument run_gpu() ...@@ -27,7 +27,7 @@ migraph::argument run_gpu()
{ {
V v; V v;
auto p = v.create_program(); auto p = v.create_program();
p.compile(migraph::miopen::miopen_target{}); p.compile(migraph::miopen::target{});
auto m = v.create_params(); auto m = v.create_params();
for(auto&& e : m) for(auto&& e : m)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment