"vscode:/vscode.git/clone" did not exist on "e17b495dff05a641e6a15efdb92b603b2f111a8a"
Commit 7437ebf4 authored by mei-ye's avatar mei-ye
Browse files

more tidy error

parent 6a09f672
...@@ -155,14 +155,17 @@ struct context ...@@ -155,14 +155,17 @@ struct context
} }
hip_device::stream& get_stream() { return get_current_device().get_stream(); } hip_device::stream& get_stream() { return get_current_device().get_stream(); }
void set_stream(int n) void set_stream(int n) const
{ {
if(n >= 0) if(n >= 0)
get_current_device().set_stream(n); get_current_device().set_stream(n);
} }
void create_events(int num_of_events) { get_current_device().create_events(num_of_events); } void create_events(int num_of_events) const
void record_event(int event) { get_current_device().record_event(event); } {
void wait_event(int event) { get_current_device().wait_event(event); } get_current_device().create_events(num_of_events);
}
void record_event(int event) const { get_current_device().record_event(event); }
void wait_event(int event) const { get_current_device().wait_event(event); }
std::vector<argument> literals{}; std::vector<argument> literals{};
void finish() const void finish() const
......
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