OpenCL minimum version is 1.2

We use CL_MAP_WRITE_INVALIDATE, and I think one other feature which
both require v1.2 minimum
This commit is contained in:
2025-11-12 13:02:15 -04:00
parent 96e64e24b8
commit 33b534355a
2 changed files with 4 additions and 4 deletions
@@ -55,7 +55,7 @@ bool OpenClCollatingAndMeshingEngine::setup()
}
cl_int err;
cl_queue_properties queueProps[] = {CL_QUEUE_PROPERTIES, 0, 0};
cl_command_queue_properties queueProps = 0;
// Get platform
cl_uint numPlatforms;
@@ -85,8 +85,8 @@ bool OpenClCollatingAndMeshingEngine::setup()
goto cleanup;
}
// Create command queue
commandQueue = clCreateCommandQueueWithProperties(
// Create command queue (OpenCL 1.2 API)
commandQueue = clCreateCommandQueue(
context, device, queueProps, &err);
if (err != CL_SUCCESS || !commandQueue)
@@ -8,7 +8,7 @@
#include <functional>
#include <iostream>
#include <stdexcept>
#define CL_TARGET_OPENCL_VERSION 300
#define CL_TARGET_OPENCL_VERSION 120
#include <CL/cl.h>
#include <asynchronousLoop.h>
#include <callback.h>