summaryrefslogtreecommitdiff
path: root/libopencl/opencl_runtime_api.cc
diff options
context:
space:
mode:
authorTor Aamodt <[email protected]>2010-08-08 22:18:34 -0800
committerTor Aamodt <[email protected]>2010-08-08 22:18:34 -0800
commit083f33e3580c2014a80a3e75e7e3c593588a526e (patch)
treefc61927b5fc4ebed8cf0c8bfe0916b8729bcbe79 /libopencl/opencl_runtime_api.cc
parent55e37b811c5cf78c32229b2df7ce2e662f45101d (diff)
- remember to return CL_SUCCESS if we allocate memory successfully
[git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 7171]
Diffstat (limited to 'libopencl/opencl_runtime_api.cc')
-rw-r--r--libopencl/opencl_runtime_api.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/libopencl/opencl_runtime_api.cc b/libopencl/opencl_runtime_api.cc
index 3fa050b..8b2b94e 100644
--- a/libopencl/opencl_runtime_api.cc
+++ b/libopencl/opencl_runtime_api.cc
@@ -384,6 +384,7 @@ _cl_mem::_cl_mem(
m_device_ptr = (size_t) gpgpu_ptx_sim_malloc(size);
if( host_ptr )
gpgpu_ptx_sim_memcpy_to_gpu( m_device_ptr, host_ptr, size );
+ *errcode_ret = CL_SUCCESS;
}
cl_mem _cl_context::CreateBuffer(