We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a5a649f + 34b66fd commit 2858a8aCopy full SHA for 2858a8a
source/adapters/hip/platform.cpp
@@ -77,6 +77,7 @@ urPlatformGet(ur_adapter_handle_t *, uint32_t, uint32_t NumEntries,
77
for (auto i = 0u; i < static_cast<uint32_t>(NumDevices); ++i) {
78
hipDevice_t Device;
79
UR_CHECK_ERROR(hipDeviceGet(&Device, i));
80
+ UR_CHECK_ERROR(hipSetDevice(i));
81
hipEvent_t EvBase;
82
UR_CHECK_ERROR(hipEventCreate(&EvBase));
83
0 commit comments