From: Carlos S. de La L. <car...@ur...> - 2011-10-21 14:00:05
|
Hi all, I just pushed a new branch with my work on making work groups thread-safe. Main changes are for standalone targets (TCE). New interface is as follows: struct _pocl_context { cl_uint work_dim; cl_uint num_groups[3]; cl_uint group_id[3]; cl_uint global_offset[3]; } void _<kernel>_workgroup (void *args[], struct _pocl_context *pc); "args" is an array with pointers to the correct kernel argument values (no changes there), and the new struct gives all the values the kernel runtime needs, at least so far. Should be easier to extend it in the future if needed, so no more interface changes will be made (hopefully). You can switch to that branch to start using the new interface. It will be merged into trunk once thread-safe is completed. BR Carlos |