Home ⌂Doc Index ◂Up ▴
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 1194 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 1195 of file flow_graph_opencl_node.h.

1195  {
1196  opencl_device_list dl;
1197  cl_platform_id platform_id = devices.begin()->platform_id();
1198  for (opencl_device_list::const_iterator it = devices.cbegin(); it != devices.cend(); ++it) {
1199  if (it->platform_id() == platform_id) {
1200  dl.add(*it);
1201  }
1202  }
1203  return dl;
1204  }

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

Here is the call graph for this function:

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

Copyright © 2005-2020 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.