P4 to Git Change 1722452 by skudchad@skudchad_test2_win_opencl on 2018/12/19 13:24:25
SWDEV-145570 - Use Subwindow copy SDMA for D->H and H->D copies if possible or fall back to linebyline copies if unalinged pitch.
- Set correct flags for SVM finegrain buffer for ROC backend
ReviewBoardURL = http://ocltc.amd.com/reviews/r/16353/diff/
Affected files ...
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocblit.cpp#27 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocmemory.cpp#41 edit
[ROCm/clr commit: c8cd6e607e]
Этот коммит содержится в:
1 родитель
27b61d2c32
Коммит
bceefafb40
2 files changed
+80
-22
No files matched your search
@@ -671,6 +671,7 @@ bool Buffer::create() {
|
||||
if (owner()->getSvmPtr() == reinterpret_cast<void*>(1)) {
|
||||
if (isFineGrain) {
|
||||
deviceMemory_ = dev().hostAlloc(size(), 1, false);
|
||||
flags_ |= HostMemoryDirectAccess;
|
||||
} else {
|
||||
deviceMemory_ = dev().deviceLocalAlloc(size());
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user