@@ -354,10 +354,8 @@ void ExecutionEnvironment::adjustCcsCountImpl(RootDeviceEnvironment *rootDeviceE
354354 productHelper.adjustNumberOfCcs (*hwInfo);
355355}
356356
357- bool ExecutionEnvironment::adjustCcsCount () {
358- if (!parseCcsCountLimitations ()) {
359- return false ;
360- }
357+ void ExecutionEnvironment::adjustCcsCount () {
358+ parseCcsCountLimitations ();
361359
362360 for (auto rootDeviceIndex = 0u ; rootDeviceIndex < rootDeviceEnvironments.size (); rootDeviceIndex++) {
363361 auto &rootDeviceEnvironment = rootDeviceEnvironments[rootDeviceIndex];
@@ -366,42 +364,32 @@ bool ExecutionEnvironment::adjustCcsCount() {
366364 adjustCcsCountImpl (rootDeviceEnvironment.get ());
367365 }
368366 }
369-
370- return true ;
371367}
372368
373- bool ExecutionEnvironment::adjustCcsCount (const uint32_t rootDeviceIndex) const {
369+ void ExecutionEnvironment::adjustCcsCount (const uint32_t rootDeviceIndex) const {
374370 auto &rootDeviceEnvironment = rootDeviceEnvironments[rootDeviceIndex];
375371 UNRECOVERABLE_IF (!rootDeviceEnvironment);
376372 if (rootDeviceNumCcsMap.find (rootDeviceIndex) != rootDeviceNumCcsMap.end ()) {
377- if (!rootDeviceEnvironment->setNumberOfCcs (rootDeviceNumCcsMap.at (rootDeviceIndex))) {
378- return false ;
379- }
373+ rootDeviceEnvironment->setNumberOfCcs (rootDeviceNumCcsMap.at (rootDeviceIndex));
380374 } else {
381375 adjustCcsCountImpl (rootDeviceEnvironment.get ());
382376 }
383-
384- return true ;
385377}
386378
387- bool ExecutionEnvironment::parseCcsCountLimitations () {
379+ void ExecutionEnvironment::parseCcsCountLimitations () {
388380 const auto &numberOfCcsString = debugManager.flags .ZEX_NUMBER_OF_CCS .get ();
389381
390382 if (numberOfCcsString.compare (" default" ) == 0 ||
391383 numberOfCcsString.empty ()) {
392- return true ;
384+ return ;
393385 }
394386
395387 for (auto rootDeviceIndex = 0u ; rootDeviceIndex < rootDeviceEnvironments.size (); rootDeviceIndex++) {
396388 auto &rootDeviceEnvironment = rootDeviceEnvironments[rootDeviceIndex];
397389 UNRECOVERABLE_IF (!rootDeviceEnvironment);
398390 auto &productHelper = rootDeviceEnvironment->getHelper <ProductHelper>();
399- if (!productHelper.parseCcsMode (numberOfCcsString, rootDeviceNumCcsMap, rootDeviceIndex, rootDeviceEnvironment.get ())) {
400- return false ;
401- }
391+ productHelper.parseCcsMode (numberOfCcsString, rootDeviceNumCcsMap, rootDeviceIndex, rootDeviceEnvironment.get ());
402392 }
403-
404- return true ;
405393}
406394
407395void ExecutionEnvironment::configureNeoEnvironment () {
0 commit comments