mirror of
https://github.com/vortexgpgpu/vortex.git
synced 2025-04-24 13:57:17 -04:00
per-workgroup local memory fix
This commit is contained in:
parent
3534175d43
commit
351aa48f6e
2 changed files with 65 additions and 65 deletions
|
@ -25,18 +25,19 @@ typedef struct {
|
|||
uint32_t num_groups[3];
|
||||
uint32_t global_offset[3];
|
||||
uint32_t local_size[3];
|
||||
char * printf_buffer;
|
||||
uint32_t *printf_buffer_position;
|
||||
uint32_t printf_buffer;
|
||||
uint32_t printf_buffer_position;
|
||||
uint32_t printf_buffer_capacity;
|
||||
uint32_t work_dim;
|
||||
} context_t;
|
||||
} pocl_kernel_context_t;
|
||||
|
||||
typedef void (*vx_spawn_kernel_cb) (
|
||||
typedef void (*pocl_kernel_cb) (
|
||||
const void * /* arg */,
|
||||
const context_t * /* context */,
|
||||
const pocl_kernel_context_t * /* context */,
|
||||
uint32_t /* group_x */,
|
||||
uint32_t /* group_y */,
|
||||
uint32_t /* group_z */
|
||||
uint32_t /* group_z */,
|
||||
uint32_t /* local_offset */
|
||||
);
|
||||
|
||||
typedef void (*vx_spawn_tasks_cb)(int task_id, void *arg);
|
||||
|
@ -45,7 +46,7 @@ typedef void (*vx_serial_cb)(void *arg);
|
|||
|
||||
void vx_wspawn_wait();
|
||||
|
||||
void vx_spawn_kernel(context_t * ctx, vx_spawn_kernel_cb callback, void * arg);
|
||||
void vx_spawn_pocl_kernel(pocl_kernel_context_t * ctx, pocl_kernel_cb callback, void * arg);
|
||||
|
||||
void vx_spawn_tasks(int num_tasks, vx_spawn_tasks_cb callback, void * arg);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue