@@ -357,9 +357,9 @@ RT::PiProgram ProgramManager::createPIProgram(const RTDeviceBinaryImage &Img,
357
357
}
358
358
359
359
std::string getDeviceString (const device &Device) {
360
- return {Device.get_platform ().get_info <sycl::info::platform::name>() +" /" +
361
- Device.get_info <sycl::info::device::name>() + " /" +
362
- Device.get_info <sycl::info::device::version>() + " /" +
360
+ return {Device.get_platform ().get_info <sycl::info::platform::name>() + " /" +
361
+ Device.get_info <sycl::info::device::name>() + " /" +
362
+ Device.get_info <sycl::info::device::version>() + " /" +
363
363
Device.get_info <sycl::info::device::driver_version>()};
364
364
}
365
365
@@ -428,7 +428,7 @@ void WriteCacheItemSrc(const std::string &FileName, const device &Device,
428
428
DumpBinData (SpecConsts.data (), SpecConsts.size ())};
429
429
if (DbgProgMgr > 1 ) {
430
430
std::cerr << " ####Writing source for cache item.\n " ;
431
- std::cerr << " ####'" << DeviceString<< " '" << std::endl;
431
+ std::cerr << " ####'" << DeviceString << " '" << std::endl;
432
432
}
433
433
434
434
size_t Size = DeviceString.size ();
@@ -491,14 +491,16 @@ bool IsCacheItemSrcEqual(const std::string &FileName, const device &Device,
491
491
FileStream.read (&res[0 ], Size);
492
492
if (DeviceString.compare (res)) {
493
493
if (DbgProgMgr > 1 ) {
494
- std::cerr << " ####Devices differ:" <<DeviceString.compare (0 , Size-1 , res.data ())<<" \n " ;
495
- std::cerr << " ####'" <<DeviceString<<" '\n " ;
494
+ std::cerr << " ####Devices differ:"
495
+ << DeviceString.compare (0 , Size - 1 , res.data ()) << " \n " ;
496
+ std::cerr << " ####'" << DeviceString << " '\n " ;
496
497
std::cerr << " ####\t vs\n " ;
497
- std::cerr << " ####'" <<std::string (res.data (),Size)<<" '\n " ;
498
- std::cerr << " ####Cached size " << std::dec << Size << " vs current size " << DeviceString.size () << std::endl;
499
- for (unsigned int i=0 ; i< Size;i++){
500
- if (res[i]!=DeviceString[i])
501
- std::cerr << " ####First diff on " << i<<std::endl;
498
+ std::cerr << " ####'" << std::string (res.data (), Size) << " '\n " ;
499
+ std::cerr << " ####Cached size " << std::dec << Size << " vs current size "
500
+ << DeviceString.size () << std::endl;
501
+ for (unsigned int i = 0 ; i < Size; i++) {
502
+ if (res[i] != DeviceString[i])
503
+ std::cerr << " ####First diff on " << i << std::endl;
502
504
}
503
505
}
504
506
@@ -511,9 +513,9 @@ bool IsCacheItemSrcEqual(const std::string &FileName, const device &Device,
511
513
if (BuildOptionsString.compare (0 , Size, res.data ())) {
512
514
if (DbgProgMgr > 1 ) {
513
515
std::cerr << " ####Build options differ:\n " ;
514
- std::cerr << " ####'" <<BuildOptionsString<< " '\n " ;
516
+ std::cerr << " ####'" << BuildOptionsString << " '\n " ;
515
517
std::cerr << " ####\t vs\n " ;
516
- std::cerr << " ####'" <<std::string (res.data (), Size)<< " '\n " ;
518
+ std::cerr << " ####'" << std::string (res.data (), Size) << " '\n " ;
517
519
}
518
520
return false ;
519
521
}
@@ -524,9 +526,9 @@ bool IsCacheItemSrcEqual(const std::string &FileName, const device &Device,
524
526
if (SpecConstsString.compare (0 , Size, res.data ())) {
525
527
if (DbgProgMgr > 1 ) {
526
528
std::cerr << " ####Specialization constants differ\n " ;
527
- std::cerr << " ####'" <<SpecConstsString<< " '\n " ;
529
+ std::cerr << " ####'" << SpecConstsString << " '\n " ;
528
530
std::cerr << " ####\t vs\n " ;
529
- std::cerr << " ####'" <<std::string (res.data (), Size)<< " '\n " ;
531
+ std::cerr << " ####'" << std::string (res.data (), Size) << " '\n " ;
530
532
}
531
533
return false ;
532
534
}
@@ -537,10 +539,9 @@ bool IsCacheItemSrcEqual(const std::string &FileName, const device &Device,
537
539
if (ImgString.compare (0 , Size, res.data ())) {
538
540
if (DbgProgMgr > 1 ) {
539
541
std::cerr << " ####Images differ\n " ;
540
- std::cerr << " ####'" <<ImgString<< " '\n " ;
542
+ std::cerr << " ####'" << ImgString << " '\n " ;
541
543
std::cerr << " ####\t vs\n " ;
542
- std::cerr << " ####'" <<std::string (res.data (), Size)<<" '\n " ;
543
-
544
+ std::cerr << " ####'" << std::string (res.data (), Size) << " '\n " ;
544
545
}
545
546
return false ;
546
547
}
@@ -600,11 +601,11 @@ void ProgramManager::putPIProgramToDisc(const detail::plugin &Plugin,
600
601
FileName = DirName + " /" + std::to_string (i++);
601
602
} while (IsFSEntryPresent (FileName + " .bin" ));
602
603
603
- unsigned int DeviceNum= 0 ;
604
+ unsigned int DeviceNum = 0 ;
604
605
605
606
Plugin.call <PiApiKind::piProgramGetInfo>(Program, PI_PROGRAM_INFO_NUM_DEVICES,
606
607
sizeof (DeviceNum), &DeviceNum,
607
- nullptr );
608
+ nullptr );
608
609
609
610
std::vector<size_t > BinarySizes (DeviceNum);
610
611
Plugin.call <PiApiKind::piProgramGetInfo>(
0 commit comments