SWDEV-430256 - Expose HIP_FORCE_DEV_KERNARG under PAL

Add support of HIP_FORCE_DEV_KERNARG under PAL.
Fix persistent memory detection for a resource view.

Change-Id: Ifb7db2db14e0c2205a9661cfa53887ec61ab26a4


[ROCm/clr commit: 5f297d75d9]
Esse commit está contido em:
German
2023-11-01 15:50:29 -04:00
commit de German Andryeyev
commit 32e02383ba
4 arquivos alterados com 18 adições e 5 exclusões
+4 -2
Ver Arquivo
@@ -1828,9 +1828,7 @@ void* Resource::gpuMemoryMap(size_t* pitch, uint flags, Pal::IGpuMemory* resourc
// ================================================================================================
void Resource::gpuMemoryUnmap(Pal::IGpuMemory* resource) const {
if (desc_.cardMemory_ && !isPersistentDirectMap()) {
// @todo remove const cast
Unimplemented();
// const_cast<Device&>(dev()).resUnmapLocal(resource);
} else {
Pal::Result result = resource->Unmap();
if (Pal::Result::Success != result) {
@@ -1928,6 +1926,10 @@ bool Resource::isPersistentDirectMap(bool writeMap) const {
directMap = IS_WINDOWS && !dev().settings().linearPersistentImage_;
}
if (memoryType() == View) {
directMap = viewOwner_->isPersistentDirectMap();
}
return directMap;
}