Quantcast
Channel: Intel® Software - OpenCL*
Viewing all articles
Browse latest Browse all 1182

clEnqueueCopyBufferRect crashes with access violation in cpu_device32.dll

$
0
0

I have several calls to clEnqueueCopyBufferRect to copy data between two device buffers.

After a few calls, I get a crash with an access violation.

I am using the 2014 beta sdk, targetting my Intel i7 cpu.

Here is a code snippet:

size_t bufferOffset[] = { 0, 0};

		   // The region size must be given in bytes
			size_t region[] = { img_size.s[0] * sizeof(type_data), img_size.s[1] * sizeof(type_data) };

			clEnqueueCopyBufferRect ( oclObjects.queue, 	//copy command will be queued
				          (cl_mem)d_odata,
						  (cl_mem)(d_idata),
						  bufferOffset,	//offset associated with src_buffer
						  bufferOffset,     //offset associated with src_buffer
						  region,		//(width, height, depth) in bytes of the 2D or 3D rectangle being copied
						  tile_comp->width * sizeof(type_data),   //length of each row in bytes
						  0, //length of each 2D slice in bytes
						  tile_comp->width * sizeof(type_data) ,   //length of each row in bytes
						  0, //length of each 2D slice in bytes
						  0,
						  NULL,
						  NULL);

			err = clEnqueueBarrier(oclObjects.queue);
			SAMPLE_CHECK_ERRORS(err);
						  

Thanks,

Aaron

 


Viewing all articles
Browse latest Browse all 1182

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>