Commit 1bb46ca
committed
Set the right HIP device before creating base event counter
Without any default device in the current thread, all base events
were associated with device 0, causing failures when used on other
devices. Fix this by calling hipSetDevice before recording the event.1 parent 608603a commit 1bb46ca
1 file changed
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
| 80 | + | |
80 | 81 | | |
81 | 82 | | |
82 | 83 | | |
| |||
0 commit comments