From 29885a00803c9f84ad515d29a8fe7b08e45b0f76 Mon Sep 17 00:00:00 2001 From: Flo Edelmann Date: Sun, 25 Jul 2021 18:07:30 +0200 Subject: [PATCH] Fix compiler warnings --- main.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/main.c b/main.c index f59b67f..7a1e264 100644 --- a/main.c +++ b/main.c @@ -1,6 +1,8 @@ #include #include +#define CL_TARGET_OPENCL_VERSION 220 + #ifdef __APPLE__ #include #else @@ -47,7 +49,7 @@ int main(void) { cl_context context = clCreateContext( NULL, 1, &device_id, NULL, NULL, &ret); // Create a command queue - cl_command_queue command_queue = clCreateCommandQueue(context, device_id, 0, &ret); + cl_command_queue command_queue = clCreateCommandQueueWithProperties(context, device_id, 0, &ret); // Create memory buffers on the device for each vector cl_mem a_mem_obj = clCreateBuffer(context, CL_MEM_READ_ONLY,