Skip to content

Commit

Permalink
Fixes #408: Added missing const qualifier to the context parameter of…
Browse files Browse the repository at this point in the history
… an `event::create()` variant
  • Loading branch information
eyalroz committed Sep 22, 2022
1 parent eb285b9 commit 5338353
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/cuda/api/event.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -465,10 +465,10 @@ inline event_t create(
* @note Even if the context happens to be primary, the created event will _not_ keep this context alive.
*/
inline event_t create(
context_t& context,
bool uses_blocking_sync = sync_by_busy_waiting,
bool records_timing = do_record_timings,
bool interprocess = not_interprocess);
const context_t& context,
bool uses_blocking_sync = sync_by_busy_waiting,
bool records_timing = do_record_timings,
bool interprocess = not_interprocess);

} // namespace event

Expand Down

0 comments on commit 5338353

Please sign in to comment.