From 3045839ed8fec1d2778535bb510400d16672cf60 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcel=20L=C3=BCtke=20Dreimann?= Date: Fri, 4 Nov 2022 17:15:12 +0100 Subject: [PATCH] opencl wrapper in C --- repos/hello_gpgpu/src/hello_gpgpu/CL/cl.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/repos/hello_gpgpu/src/hello_gpgpu/CL/cl.cc b/repos/hello_gpgpu/src/hello_gpgpu/CL/cl.cc index 4429d55eb1..ae88ee6b59 100644 --- a/repos/hello_gpgpu/src/hello_gpgpu/CL/cl.cc +++ b/repos/hello_gpgpu/src/hello_gpgpu/CL/cl.cc @@ -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