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