Skip to content

Commit b7d6c64

Browse files
committed
set image type to spir64 for DynRTDeviceBinaryImage
Signed-off-by: hiaselhans <[email protected]>
1 parent bee1066 commit b7d6c64

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

sycl/source/detail/program_manager/program_manager.cpp

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -665,9 +665,13 @@ void ProgramManager::populateSpecConstRegistry() {
665665
RTDeviceBinaryImage &ProgramManager::getDeviceImage(OSModuleHandle M,
666666
KernelSetId KSId,
667667
const context &Context) {
668-
if (DbgProgMgr > 0)
668+
if (DbgProgMgr > 0){
669669
std::cerr << ">>> ProgramManager::getDeviceImage(" << M << ", \"" << KSId
670670
<< "\", " << getRawSyclObjImpl(Context) << ")\n";
671+
672+
std::cerr << "available device images:\n";
673+
debugPrintBinaryImages();
674+
}
671675
std::lock_guard<std::mutex> Guard(Sync::getGlobalLock());
672676
std::vector<RTDeviceBinaryImageUPtr> &Imgs = *m_DeviceImages[KSId];
673677
const ContextImplPtr Ctx = getSyclObjImpl(Context);
@@ -689,8 +693,6 @@ RTDeviceBinaryImage &ProgramManager::getDeviceImage(OSModuleHandle M,
689693
Img = Imgs[ImgInd].get();
690694

691695
if (DbgProgMgr > 0) {
692-
std::cerr << "available device images:\n";
693-
debugPrintBinaryImages();
694696
std::cerr << "selected device image: " << &Img->getRawData() << "\n";
695697
Img->print();
696698
}
@@ -992,7 +994,7 @@ DynRTDeviceBinaryImage::DynRTDeviceBinaryImage(
992994
Bin = new pi_device_binary_struct();
993995
Bin->Version = PI_DEVICE_BINARY_VERSION;
994996
Bin->Kind = PI_DEVICE_BINARY_OFFLOAD_KIND_SYCL;
995-
Bin->DeviceTargetSpec = PI_DEVICE_BINARY_TARGET_UNKNOWN;
997+
Bin->DeviceTargetSpec = PI_DEVICE_BINARY_TARGET_SPIRV64;
996998
Bin->CompileOptions = "";
997999
Bin->LinkOptions = "";
9981000
Bin->ManifestStart = nullptr;

0 commit comments

Comments
 (0)