Lines Matching defs:kernel
262 struct kernel *kernel = backend->assemble(backend, in);
263 printf("localsize: %dx%dx%d\n", kernel->local_size[0], kernel->local_size[1],
264 kernel->local_size[2]);
265 for (int i = 0; i < kernel->num_bufs; i++) {
266 printf("buf[%d]: size=%u\n", i, kernel->buf_sizes[i]);
267 kernel->bufs[i] = fd_bo_new(dev, kernel->buf_sizes[i] * 4, 0, "buf[%d]", i);
271 backend->disassemble(kernel, stdout);
286 backend->emit_grid(kernel, grid, submit);
295 for (int i = 0; i < kernel->num_bufs; i++) {
296 fd_bo_cpu_prep(kernel->bufs[i], pipe, FD_BO_PREP_READ);
297 void *map = fd_bo_map(kernel->bufs[i]);
300 dump_hex(map, kernel->buf_sizes[i] * 4);
301 dump_float(map, kernel->buf_sizes[i] * 4);