Gamaru / clutil

Automatically exported from code.google.com/p/clutil
0 stars 0 forks source link

Grid Objects #5

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
We can reduce the number of arguments required by clUtil_enqueueKernel by 
passing a Grid& object or something like that that includes dimension, global 
and local size information. Furthermore, these objects can be smart enough to 
force global to be a multiple of local (no more global = length % local == 0 ? 
length : (length / local + 1) * local; bullshit!). Hopefully, we can use 
variadic templates to get a syntax like

Grid theGrid(globalDim1, localDim1, globalDim2, localDim2, ...)

Also, we can ensure that local dim doesn't exceed the maximum workgroup size 
for the current device.

Original issue reported on code.google.com by rick.web...@gmail.com on 20 Dec 2010 at 9:47

GoogleCodeExporter commented 8 years ago
Feature added.
call clUtilGrid(global1, local1, ...) inline in clUtilEnqueueKernel.

The latter function was updated to take an rvalue reference to make this work. 
Changes in clUtil_kernel.h.

Original comment by rick.web...@gmail.com on 22 Dec 2010 at 1:20