SWDEV-497145 - Use rocr copyOnEngine API for staged copies

- Refactor blit code and clean ASAN instrumentation
- Use unified function for rocr copy
- Enable shader copy path for unpinned writeBuffer/readBuffer paths
- Set GPU_FORCE_BLIT_COPY_SIZE=16 which means we will use BLIT copy for
  pinned copies or unpinned H2D/D2H copies < 16KB

Change-Id: I42045cca79234b340dbf53dafb93044199736ae4


[ROCm/clr commit: 7863eb92dc]
This commit is contained in:
Saleel Kudchadker
2024-11-08 05:51:17 +00:00
förälder 6933aa7c29
incheckning 7d7aa8b69c
7 ändrade filer med 359 tillägg och 427 borttagningar
+2 -1
Visa fil
@@ -1202,7 +1202,8 @@ bool Device::populateOCLDeviceConstants() {
&info_.globalMemCacheLineSize_)) {
return false;
}
assert(info_.globalMemCacheLineSize_ > 0);
info_.globalMemCacheLineSize_ = (info_.globalMemCacheLineSize_ != 0) ?
info_.globalMemCacheLineSize_ : 64;
uint32_t cachesize[4] = {0};
if (HSA_STATUS_SUCCESS !=