SWDEV-520384 - Improve postLoad latency during program load (#758)

Change-Id: I3c5a9e148efbd845c8fa3e4b51d9653664e9c499
Bu işleme şunda yer alıyor:
Xie, Pengda authored and GitHub committed 2025-08-13 19:36:06 -07:00
1 ebeveyn a028359ead
işleme 191f068193
5 files changed
+87 -59

No files matched your search

+2 -5
Dosyayı Görüntüle
@@ -47,11 +47,6 @@ bool Kernel::postLoad() {
workGroupInfo_.availableLDSSize_ = device().info().localMemSizePerCU_;
assert(workGroupInfo_.availableLDSSize_ > 0);
if (!SetAvailableSgprVgpr()) {
DevLogError("Cannot set available SGPR/VGPR\n");
return false;
}
// Get the kernel code handle
hsa_status_t hsaStatus;
hsa_executable_symbol_t symbol;
@@ -145,6 +140,8 @@ bool Kernel::postLoad() {
}
assert(wavefront_size > 0);
workGroupInfo_.availableVGPRs_ = device().isa().vgprPerWavefront();
workGroupInfo_.availableSGPRs_ = device().isa().sgprPerWavefront();
workGroupInfo_.privateMemSize_ = workitemPrivateSegmentByteSize_;
workGroupInfo_.localMemSize_ = workgroupGroupSegmentByteSize_;
workGroupInfo_.usedLDSSize_ = workgroupGroupSegmentByteSize_;