OClSplitEngn: fix build warnings

This commit is contained in:
2025-11-07 22:20:44 -04:00
parent f5146738e1
commit 0b21cdd2ba
2 changed files with 4 additions and 1 deletions
@@ -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 {