diff --git a/GPU_version/vio/src/cl_class.cpp b/GPU_version/vio/src/cl_class.cpp index 0a0b5a3..c3af6a1 100644 --- a/GPU_version/vio/src/cl_class.cpp +++ b/GPU_version/vio/src/cl_class.cpp @@ -13,7 +13,7 @@ opencl::opencl(vk::AbstractCamera* cam):cam(cam) { std::vector all_devices; for(auto i:all_platforms){ std::cout << "Find platform number:"<< i.getInfo() << "\n"; - i.getDevices(CL_DEVICE_TYPE_CPU, &all_devices); + i.getDevices(CL_DEVICE_TYPE_GPU, &all_devices); } if (all_devices.size() == 0){