We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 039c5d1 + 1bb46ca commit 4130508Copy full SHA for 4130508
1 file changed
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