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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Referência em uma Nova Issue
Bloquear um usuário