File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -261,7 +261,9 @@ DeviceManager::DeviceManager()
261261
262262 // Create contexts and queues once the sort is done
263263 for (int i = 0 ; i < nDevices; i++) {
264- cl_platform_id device_platform =
264+ // For OpenCL-HPP >= v2023.12.14 type is cl::Platform instead of
265+ // cl_platform_id
266+ cl::Platform device_platform =
265267 devices[i]->getInfo <CL_DEVICE_PLATFORM >();
266268 try {
267269 mContexts .emplace_back (
@@ -272,7 +274,7 @@ DeviceManager::DeviceManager()
272274 mDeviceTypes .push_back (getDeviceTypeEnum (*devices[i]));
273275 mPlatforms .push_back (
274276 std::make_pair<std::unique_ptr<cl::Platform>, afcl_platform>(
275- make_unique<cl::Platform>(device_platform, true ),
277+ make_unique<cl::Platform>(device_platform () , true ),
276278 getPlatformEnum (*devices[i])));
277279 mDevices .emplace_back (std::move (devices[i]));
278280
You can’t perform that action at this time.
0 commit comments