Intel(R) Threading Building Blocks Doxygen Documentation  version 4.2.3
tbb::flow::interface10::opencl_info::default_device_filter Struct Reference

#include <flow_graph_opencl_node.h>

Collaboration diagram for tbb::flow::interface10::opencl_info::default_device_filter:

Public Member Functions

opencl_device_list operator() (const opencl_device_list &devices)
 

Detailed Description

Definition at line 1177 of file flow_graph_opencl_node.h.

Member Function Documentation

◆ operator()()

opencl_device_list tbb::flow::interface10::opencl_info::default_device_filter::operator() ( const opencl_device_list devices)
inline

Definition at line 1178 of file flow_graph_opencl_node.h.

References tbb::flow::interface10::opencl_device_list::add(), tbb::flow::interface10::opencl_device_list::begin(), tbb::flow::interface10::opencl_device_list::cbegin(), and tbb::flow::interface10::opencl_device_list::cend().

1178  {
1179  opencl_device_list dl;
1180  cl_platform_id platform_id = devices.begin()->platform_id();
1181  for (opencl_device_list::const_iterator it = devices.cbegin(); it != devices.cend(); ++it) {
1182  if (it->platform_id() == platform_id) {
1183  dl.add(*it);
1184  }
1185  }
1186  return dl;
1187  }
Here is the call graph for this function:

The documentation for this struct was generated from the following file:

Copyright © 2005-2019 Intel Corporation. All Rights Reserved.

Intel, Pentium, Intel Xeon, Itanium, Intel XScale and VTune are registered trademarks or trademarks of Intel Corporation or its subsidiaries in the United States and other countries.

* Other names and brands may be claimed as the property of others.