Skip to content

Commit

Permalink
src: fix OpenCL command queue creation
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Bevenius <[email protected]>
  • Loading branch information
danbev committed Jun 1, 2024
1 parent 1912b3c commit 3f8d524
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gpu/opencl/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ int main() {
clGetDeviceIDs(platform, CL_DEVICE_TYPE_GPU, 1, &device, NULL);

cl_context context = clCreateContext(NULL, 1, &device, NULL, NULL, NULL);
cl_command_queue queue = clCreateCommandQueue(context, device, 0, NULL);
cl_queue_properties properties[] = { CL_QUEUE_PROPERTIES, 0, 0 };
cl_command_queue queue = clCreateCommandQueueWithProperties(context, device, properties, NULL);

unsigned int numElements = NUM_ELEMENTS;

Expand Down

0 comments on commit 3f8d524

Please sign in to comment.