Commit 94461807 authored by Paul's avatar Paul
Browse files

Formatting

parent b12209b0
...@@ -38,11 +38,11 @@ struct hip_device ...@@ -38,11 +38,11 @@ struct hip_device
{ {
if(enabled(MIGRAPH_DISABLE_NULL_STREAM{})) if(enabled(MIGRAPH_DISABLE_NULL_STREAM{}))
{ {
set_device(id); set_device(id);
if(s == nullptr) if(s == nullptr)
s = create_stream(); s = create_stream();
assert(s.get() != nullptr); assert(s.get() != nullptr);
return s.get(); return s.get();
} }
return nullptr; return nullptr;
} }
...@@ -53,7 +53,6 @@ struct hip_device ...@@ -53,7 +53,6 @@ struct hip_device
return make_obj<miopen_handle>(&miopenCreateWithStream, get()); return make_obj<miopen_handle>(&miopenCreateWithStream, get());
else else
return make_obj<miopen_handle>(&miopenCreate); return make_obj<miopen_handle>(&miopenCreate);
} }
auto get_miopen() auto get_miopen()
......
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