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:
@@ -55,7 +55,7 @@ bool OpenClCollatingAndMeshingEngine::setup()
|
|||||||
}
|
}
|
||||||
|
|
||||||
cl_int err;
|
cl_int err;
|
||||||
cl_queue_properties queueProps[] = {CL_QUEUE_PROPERTIES, 0, 0};
|
cl_command_queue_properties queueProps = 0;
|
||||||
|
|
||||||
// Get platform
|
// Get platform
|
||||||
cl_uint numPlatforms;
|
cl_uint numPlatforms;
|
||||||
@@ -85,8 +85,8 @@ bool OpenClCollatingAndMeshingEngine::setup()
|
|||||||
goto cleanup;
|
goto cleanup;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Create command queue
|
// Create command queue (OpenCL 1.2 API)
|
||||||
commandQueue = clCreateCommandQueueWithProperties(
|
commandQueue = clCreateCommandQueue(
|
||||||
context, device, queueProps, &err);
|
context, device, queueProps, &err);
|
||||||
|
|
||||||
if (err != CL_SUCCESS || !commandQueue)
|
if (err != CL_SUCCESS || !commandQueue)
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
#include <functional>
|
#include <functional>
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <stdexcept>
|
#include <stdexcept>
|
||||||
#define CL_TARGET_OPENCL_VERSION 300
|
#define CL_TARGET_OPENCL_VERSION 120
|
||||||
#include <CL/cl.h>
|
#include <CL/cl.h>
|
||||||
#include <asynchronousLoop.h>
|
#include <asynchronousLoop.h>
|
||||||
#include <callback.h>
|
#include <callback.h>
|
||||||
|
|||||||
Reference in New Issue
Block a user