@@ -48,7 +48,8 @@ ur_context_handle_t_::ur_context_handle_t_(ze_context_handle_t hContext,
4848 uint32_t numDevices,
4949 const ur_device_handle_t *phDevices,
5050 bool ownZeContext)
51- : commandListCache(hContext),
51+ : hContext(hContext, ownZeContext),
52+ hDevices(phDevices, phDevices + numDevices), commandListCache(hContext),
5253 eventPoolCache(this , phDevices[0 ]->Platform->getNumDevices (),
5354 [context = this, platform = phDevices[0]->Platform](
5455 DeviceId deviceId, v2::event_flags_t flags)
@@ -65,8 +66,6 @@ ur_context_handle_t_::ur_context_handle_t_(ze_context_handle_t hContext,
6566 nativeEventsPool(this , std::make_unique<v2::provider_normal>(
6667 this , v2::QUEUE_IMMEDIATE,
6768 v2::EVENT_FLAGS_PROFILING_ENABLED)),
68- hContext(hContext, ownZeContext),
69- hDevices(phDevices, phDevices + numDevices),
7069 p2pAccessDevices(populateP2PDevices(
7170 phDevices[0 ]->Platform->getNumDevices (), this->hDevices)),
7271 defaultUSMPool(this , nullptr ) {}
0 commit comments