Commit 1f819bf1 authored by Paul's avatar Paul
Browse files

Formatting

parent 235e78ce
...@@ -36,11 +36,11 @@ inline std::ostream& operator<<(std::ostream& s, std::nullptr_t) ...@@ -36,11 +36,11 @@ inline std::ostream& operator<<(std::ostream& s, std::nullptr_t)
return s; return s;
} }
template<class T> template <class T>
inline std::ostream& operator<<(std::ostream& s, const std::vector<T>& v) inline std::ostream& operator<<(std::ostream& s, const std::vector<T>& v)
{ {
char delim = '{'; char delim = '{';
for(auto&& x:v) for(auto&& x : v)
{ {
s << delim << " " << x; s << delim << " " << x;
delim = ','; delim = ',';
......
...@@ -56,7 +56,9 @@ struct wait_event ...@@ -56,7 +56,9 @@ struct wait_event
std::string name() const { return "wait_event"; } std::string name() const { return "wait_event"; }
migraphx::shape compute_shape(const std::vector<migraphx::shape>&) const { return {}; } migraphx::shape compute_shape(const std::vector<migraphx::shape>&) const { return {}; }
migraphx::argument compute(migraphx::context&, const migraphx::shape&, const std::vector<migraphx::argument>&) const migraphx::argument compute(migraphx::context&,
const migraphx::shape&,
const std::vector<migraphx::argument>&) const
{ {
return {}; return {};
} }
...@@ -127,7 +129,7 @@ std::vector<std::size_t> get_wait_for(std::size_t wait_on, std::vector<std::size ...@@ -127,7 +129,7 @@ std::vector<std::size_t> get_wait_for(std::size_t wait_on, std::vector<std::size
std::vector<std::size_t> get_wait_for(migraphx::instruction_ref ins) std::vector<std::size_t> get_wait_for(migraphx::instruction_ref ins)
{ {
auto wait_ins = std::prev(ins); auto wait_ins = std::prev(ins);
if (wait_ins->name() != "wait_event") if(wait_ins->name() != "wait_event")
return {}; return {};
auto wf = migraphx::any_cast<wait_event>(wait_ins->get_operator()).wait_for; auto wf = migraphx::any_cast<wait_event>(wait_ins->get_operator()).wait_for;
std::sort(wf.begin(), wf.end()); std::sort(wf.begin(), wf.end());
......
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