summaryrefslogtreecommitdiff
path: root/src/cl_kernel.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cl_kernel.c')
-rw-r--r--src/cl_kernel.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cl_kernel.c b/src/cl_kernel.c
index 356a8a7d..bbd4438a 100644
--- a/src/cl_kernel.c
+++ b/src/cl_kernel.c
@@ -24,6 +24,7 @@
#include "cl_mem.h"
#include "cl_alloc.h"
#include "cl_utils.h"
+#include "cl_khr_icd.h"
#include "CL/cl.h"
#include "cl_sampler.h"
@@ -64,6 +65,7 @@ cl_kernel_new(cl_program p)
{
cl_kernel k = NULL;
TRY_ALLOC_NO_ERR (k, CALLOC(struct _cl_kernel));
+ SET_ICD(k->dispatch)
k->ref_n = 1;
k->magic = CL_MAGIC_KERNEL_HEADER;
k->program = p;