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

#include <flow_graph_opencl_node.h>

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

Public Member Functions

opencl_device_list operator() (const opencl_device_list &devices)
 

Detailed Description

Definition at line 1180 of file flow_graph_opencl_node.h.

Member Function Documentation

◆ operator()()

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

Definition at line 1181 of file flow_graph_opencl_node.h.

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

1181  {
1182  opencl_device_list dl;
1183  cl_platform_id platform_id = devices.begin()->platform_id();
1184  for (opencl_device_list::const_iterator it = devices.cbegin(); it != devices.cend(); ++it) {
1185  if (it->platform_id() == platform_id) {
1186  dl.add(*it);
1187  }
1188  }
1189  return dl;
1190  }
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.