Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

OpenCL: increase maximum number of pipe arguments

Tags:

pipe

opencl

I have a design composed of several kernels communicated via pipes.

One of my kernels has more than 20 pipes, but the limitation on a Intel i5 CPU seems to be 16:

# clinfo | grep pipe
Max number of pipe args                         16
Max active pipe reservations                    65535
Max pipe packet size                            1024

Question: is there any way to increase number of pipes args?

Any help would be appreciated!

like image 636
L30nardo SV. Avatar asked Nov 26 '18 18:11

L30nardo SV.


1 Answers

No, and yes.

No, because this is a descriptive information related to your hardware. That line is the output of the following code:

{ CLINFO_BOTH, DINFO(CL_DEVICE_MAX_PIPE_ARGS, "Max number of pipe args", int), dev_is_20 },

CL_DEVICE_MAX_PIPE_ARGS seams to be a new feature of opencl 2.0 New in version 2015.2.

This is the same like how many cores you have.

If you have only 2 cpu cores you hardly using 8.

Yes, because there is a way to increase number of pipes args. You Have to buy an other CPU one which supports more arguments.

My answer is probably disappointing. Sorry Good luck with your project.

like image 72
András Nagy Avatar answered Sep 23 '22 22:09

András Nagy