1212#include " shared/source/debug_settings/debug_settings_manager.h"
1313#include " shared/source/device/sub_device.h"
1414#include " shared/source/helpers/api_specific_config.h"
15- #include " shared/source/helpers/bindless_heaps_helper.h"
1615#include " shared/source/helpers/hw_helper.h"
1716#include " shared/source/memory_manager/memory_manager.h"
1817#include " shared/source/utilities/software_tags_manager.h"
@@ -38,42 +37,10 @@ Device *RootDevice::getRootDevice() const {
3837 return const_cast <RootDevice *>(this );
3938}
4039
41- SubDevice *RootDevice::createSubDevice (uint32_t subDeviceIndex) {
42- return Device::create<SubDevice>(executionEnvironment, subDeviceIndex, *this );
43- }
44-
45- bool RootDevice::createDeviceImpl () {
46- auto deviceMask = executionEnvironment->rootDeviceEnvironments [this ->rootDeviceIndex ]->deviceAffinityMask ;
47- uint32_t subDeviceCount = HwHelper::getSubDevicesCount (&getHardwareInfo ());
48- deviceBitfield = maxNBitValue (subDeviceCount);
49- deviceBitfield &= deviceMask;
50- numSubDevices = static_cast <uint32_t >(deviceBitfield.count ());
51- if (numSubDevices == 1 ) {
52- numSubDevices = 0 ;
53- }
54- UNRECOVERABLE_IF (!subdevices.empty ());
55- if (numSubDevices) {
56- subdevices.resize (subDeviceCount, nullptr );
57- for (auto i = 0u ; i < subDeviceCount; i++) {
58- if (!deviceBitfield.test (i)) {
59- continue ;
60- }
61- auto subDevice = createSubDevice (i);
62- if (!subDevice) {
63- return false ;
64- }
65- subdevices[i] = subDevice;
66- }
67- }
68- auto status = Device::createDeviceImpl ();
69- if (!status) {
70- return status;
71- }
40+ void RootDevice::createBindlessHeapsHelper () {
7241 if (ApiSpecificConfig::getBindlessConfiguration ()) {
7342 this ->executionEnvironment ->rootDeviceEnvironments [getRootDeviceIndex ()]->createBindlessHeapsHelper (getMemoryManager (), getNumAvailableDevices () > 1 , rootDeviceIndex);
7443 }
75-
76- return true ;
7744}
7845
7946bool RootDevice::createEngines () {
0 commit comments