From 083f33e3580c2014a80a3e75e7e3c593588a526e Mon Sep 17 00:00:00 2001 From: Tor Aamodt Date: Sun, 8 Aug 2010 22:18:34 -0800 Subject: - remember to return CL_SUCCESS if we allocate memory successfully [git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 7171] --- libopencl/opencl_runtime_api.cc | 1 + 1 file changed, 1 insertion(+) (limited to 'libopencl') 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( -- cgit v1.3