diff --git a/projects/clr/opencl/api/opencl/amdocl/cl_memobj.cpp b/projects/clr/opencl/api/opencl/amdocl/cl_memobj.cpp index aa2f90abdb..0a03c66320 100644 --- a/projects/clr/opencl/api/opencl/amdocl/cl_memobj.cpp +++ b/projects/clr/opencl/api/opencl/amdocl/cl_memobj.cpp @@ -3236,7 +3236,7 @@ RUNTIME_ENTRY_RET(void *, clEnqueueMapBuffer, ( // Attempt to allocate the map target now (whether blocking or non-blocking) void* mapPtr = hostQueue.device().allocMapTarget( - *srcBuffer, srcOffset, srcSize); + *srcBuffer, srcOffset, srcSize, map_flags); if (NULL == mapPtr) { delete command; *not_null(errcode_ret) = CL_MAP_FAILURE; @@ -3500,7 +3500,7 @@ RUNTIME_ENTRY_RET(void *, clEnqueueMapImage, ( // Attempt to allocate the map target now (whether blocking or non-blocking) void *mapPtr = hostQueue.device().allocMapTarget( - *srcImage, srcOrigin, srcRegion, image_row_pitch, image_slice_pitch); + *srcImage, srcOrigin, srcRegion, map_flags, image_row_pitch, image_slice_pitch); if (NULL == mapPtr) { delete command; *not_null(errcode_ret) = CL_MAP_FAILURE; diff --git a/projects/clr/opencl/api/opencl/amdocl/cl_svm.cpp b/projects/clr/opencl/api/opencl/amdocl/cl_svm.cpp index fcd815e0a3..20fe587d3f 100644 --- a/projects/clr/opencl/api/opencl/amdocl/cl_svm.cpp +++ b/projects/clr/opencl/api/opencl/amdocl/cl_svm.cpp @@ -780,7 +780,7 @@ RUNTIME_ENTRY(cl_int, clEnqueueSVMMap, ( return CL_OUT_OF_RESOURCES; } // Attempt to allocate the map target now (whether blocking or non-blocking) - void* mapPtr = (queue->device()).allocMapTarget(*svmMem, srcOffset, srcSize); + void* mapPtr = (queue->device()).allocMapTarget(*svmMem, srcOffset, srcSize, map_flags); if (NULL == mapPtr || mapPtr != svm_ptr) { return CL_OUT_OF_RESOURCES; }