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 1181 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 1182 of file flow_graph_opencl_node.h.

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

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().

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.