P4 to Git Change 1564420 by skudchad@skudchad_rocm on 2018/06/05 19:38:52
SWDEV-145570 - [HIP] - Find memobj in correct class
Affected files ...
... //depot/stg/opencl/drivers/opencl/api/hip/hip_memory.cpp#31 edit
[ROCm/clr commit: f92ce11e65]
This commit is contained in:
@@ -1302,7 +1302,7 @@ hipChannelFormatDesc hipCreateChannelDesc(int x, int y, int z, int w, hipChannel
|
||||
hipError_t hipHostGetDevicePointer(void** devicePointer, void* hostPointer, unsigned flags) {
|
||||
HIP_INIT_API(devicePointer, hostPointer, flags);
|
||||
|
||||
if (!amd::SvmBuffer::malloced(hostPointer)) {
|
||||
if (!amd::MemObjMap::FindMemObj(hostPointer)) {
|
||||
return hipErrorInvalidValue;
|
||||
}
|
||||
// right now we have SVM
|
||||
|
||||
Reference in New Issue
Block a user