P4 to Git Change 1101351 by skudchad@skudchad_test_win_opencl2 on 2014/11/28 17:32:17
EPR #403782 - IOMMU2/SVM
- For finegrainsystem, the app can pass a malloced pointer directly to the kernel. Copy pointer directly to the aqlArgBuf without exiting.
ReviewBoardURL = http://ocltc.amd.com/reviews/r/6378/diff/
Affected files ...
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpukernel.cpp#269 edit
[ROCm/clr commit: 2ba0f2a112]
This commit is contained in:
1 والد
8dd771017b
کامیت
de5e6ef163
1 file changed
+3
-1
@@ -3868,7 +3868,9 @@ HSAILKernel::loadArguments(
|
|||||||
gpuMem->wait(gpu, WaitOnBusyEngine);
|
gpuMem->wait(gpu, WaitOnBusyEngine);
|
||||||
memList.push_back(gpuMem);
|
memList.push_back(gpuMem);
|
||||||
}
|
}
|
||||||
else {
|
// If finegrainsystem is present then the pointer can be malloced by the app and
|
||||||
|
// passed to kernel directly. If so copy the pointer location to aqlArgBuf
|
||||||
|
else if ((dev().info().svmCapabilities_ & CL_DEVICE_SVM_FINE_GRAIN_SYSTEM) == 0) {
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in new issue
Block a user