Skip to content

Commit 2858a8a

Browse files
authored
Merge pull request #2276 from rafbiels/rafbiels/fix-hip-evbase
Set the right HIP device before creating base event counter
2 parents a5a649f + 34b66fd commit 2858a8a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

source/adapters/hip/platform.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ urPlatformGet(ur_adapter_handle_t *, uint32_t, uint32_t NumEntries,
7777
for (auto i = 0u; i < static_cast<uint32_t>(NumDevices); ++i) {
7878
hipDevice_t Device;
7979
UR_CHECK_ERROR(hipDeviceGet(&Device, i));
80+
UR_CHECK_ERROR(hipSetDevice(i));
8081
hipEvent_t EvBase;
8182
UR_CHECK_ERROR(hipEventCreate(&EvBase));
8283

0 commit comments

Comments
 (0)