@@ -665,9 +665,13 @@ void ProgramManager::populateSpecConstRegistry() {
665
665
RTDeviceBinaryImage &ProgramManager::getDeviceImage (OSModuleHandle M,
666
666
KernelSetId KSId,
667
667
const context &Context) {
668
- if (DbgProgMgr > 0 )
668
+ if (DbgProgMgr > 0 ){
669
669
std::cerr << " >>> ProgramManager::getDeviceImage(" << M << " , \" " << KSId
670
670
<< " \" , " << getRawSyclObjImpl (Context) << " )\n " ;
671
+
672
+ std::cerr << " available device images:\n " ;
673
+ debugPrintBinaryImages ();
674
+ }
671
675
std::lock_guard<std::mutex> Guard (Sync::getGlobalLock ());
672
676
std::vector<RTDeviceBinaryImageUPtr> &Imgs = *m_DeviceImages[KSId];
673
677
const ContextImplPtr Ctx = getSyclObjImpl (Context);
@@ -689,8 +693,6 @@ RTDeviceBinaryImage &ProgramManager::getDeviceImage(OSModuleHandle M,
689
693
Img = Imgs[ImgInd].get ();
690
694
691
695
if (DbgProgMgr > 0 ) {
692
- std::cerr << " available device images:\n " ;
693
- debugPrintBinaryImages ();
694
696
std::cerr << " selected device image: " << &Img->getRawData () << " \n " ;
695
697
Img->print ();
696
698
}
@@ -992,7 +994,7 @@ DynRTDeviceBinaryImage::DynRTDeviceBinaryImage(
992
994
Bin = new pi_device_binary_struct ();
993
995
Bin->Version = PI_DEVICE_BINARY_VERSION;
994
996
Bin->Kind = PI_DEVICE_BINARY_OFFLOAD_KIND_SYCL;
995
- Bin->DeviceTargetSpec = PI_DEVICE_BINARY_TARGET_UNKNOWN ;
997
+ Bin->DeviceTargetSpec = PI_DEVICE_BINARY_TARGET_SPIRV64 ;
996
998
Bin->CompileOptions = " " ;
997
999
Bin->LinkOptions = " " ;
998
1000
Bin->ManifestStart = nullptr ;
0 commit comments