opencl wrapper in C

This commit is contained in:
Marcel Lütke Dreimann
2022-11-04 17:15:12 +01:00
parent 3a047cc163
commit 3045839ed8

View File

@@ -622,7 +622,7 @@ clCreateProgramWithBinary(cl_context context,
return NULL;
}
cl_program p = (cl_program)g_cl_genode->alloc(sizeof(_cl_program));
cl_program p = (cl_program)g_cl_genode->alloc(sizeof(struct _cl_program));
p->binary = (uint8_t*)binaries[0];
p->size = lengths[0];
@@ -1428,7 +1428,7 @@ clEnqueueNDRangeKernel(cl_command_queue command_queue,
}
// create copy of kernel (vm and driver should not modify the same kernel)
kernel_config* kcopy = new(g_cl_genode->getAlloc()) kernel_config();
struct kernel_config* kcopy = new(g_cl_genode->getAlloc()) kernel_config();
*kcopy = *kc;
// also copy buff configs