diff --git a/include/boost/compute/distributed/command_queue.hpp b/include/boost/compute/distributed/command_queue.hpp index e173c0dad..77acb9191 100644 --- a/include/boost/compute/distributed/command_queue.hpp +++ b/include/boost/compute/distributed/command_queue.hpp @@ -231,6 +231,18 @@ class command_queue } } + /// \internal_ + /// Return true if every device supports at least OpenCL major.minor + bool check_devices_version(int major, int minor) const + { + bool check = true; + for(size_t i = 0; i < m_queues.size(); i++) + { + check = check && m_queues[i].get_device().check_version(major, minor); + } + return check; + } + private: ::boost::compute::distributed::context m_context; std::vector< ::boost::compute::command_queue> m_queues;