Skip to content

Commit

Permalink
Merge pull request #2276 from rafbiels/rafbiels/fix-hip-evbase
Browse files Browse the repository at this point in the history
Set the right HIP device before creating base event counter
  • Loading branch information
callumfare authored Nov 6, 2024
2 parents a5a649f + 34b66fd commit 2858a8a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions source/adapters/hip/platform.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ urPlatformGet(ur_adapter_handle_t *, uint32_t, uint32_t NumEntries,
for (auto i = 0u; i < static_cast<uint32_t>(NumDevices); ++i) {
hipDevice_t Device;
UR_CHECK_ERROR(hipDeviceGet(&Device, i));
UR_CHECK_ERROR(hipSetDevice(i));
hipEvent_t EvBase;
UR_CHECK_ERROR(hipEventCreate(&EvBase));

Expand Down

0 comments on commit 2858a8a

Please sign in to comment.