Ask Your Question
0

OpenCL crash with CL_INVALID_BUFFER_SIZE

asked 2013-06-18 11:49:08 -0600

neoirto gravatar image

Hi all,

I compiled OpenCV 2.4.3 with success, with the OpenCL support AMD SDK v2.8, with Mingw on Win7 64. Now, my first program compiles fine, but crashes when executing a simple :

ocl::oclMat OCL_Mat_Img( Mat_Img );

with the following error :

OpenCV Error: Gpu API call (CL_INVALID_BUFFER_SIZE) in openCLMallocPitch,...

There is probably something wrong in this first OpenCL test for me... For example, where should I place .cl kernels regading to my .exe ?

Thanks for your help !

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2013-06-21 03:55:21 -0600

neoirto gravatar image

Ok, I found by myself :

Compiling opencv 2.4.5 + OCL : same result

Compiling AMD APP samples, always with Mingw : it runs... But with results like this :

Group Size specified : 256
Max Group Size supported on the kernel(writeKernel) : 128
Falling back to 128
Executing Kernels for 1 iterations
-------------------------------------------

So I suspect the actual opencv limitation to workgroup size to 256, because my GPU is a Radeon HD 5450, limited to 128.

Could you please tell me if there is any plan to add the feature to future version (2.4.6, 3.0 ??)

In a near future, will it be possible to call different OCL contexts at the same time too (from several threads) ?

edit flag offensive delete link more

Question Tools

Stats

Asked: 2013-06-18 11:49:08 -0600

Seen: 1,161 times

Last updated: Jun 21 '13