OClSplitEngn: fix build warnings
This commit is contained in:
@@ -34,6 +34,7 @@ bool OpenClSplittingEngine::setup()
|
||||
}
|
||||
|
||||
cl_int err;
|
||||
cl_queue_properties queueProps[] = {CL_QUEUE_PROPERTIES, 0, 0};
|
||||
|
||||
// Get platform
|
||||
cl_uint numPlatforms;
|
||||
@@ -61,7 +62,8 @@ bool OpenClSplittingEngine::setup()
|
||||
}
|
||||
|
||||
// Create command queue
|
||||
commandQueue = clCreateCommandQueue(context, device, 0, &err);
|
||||
commandQueue = clCreateCommandQueueWithProperties(
|
||||
context, device, queueProps, &err);
|
||||
if (err != CL_SUCCESS || !commandQueue) {
|
||||
std::cerr << __func__ << ": failed to create command queue: "
|
||||
<< err << std::endl;
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
#include <cstdint>
|
||||
#include <cstddef>
|
||||
#include <memory>
|
||||
#define CL_TARGET_OPENCL_VERSION 300
|
||||
#include <CL/cl.h>
|
||||
|
||||
namespace smo {
|
||||
|
||||
Reference in New Issue
Block a user