Home ⌂Doc Index ◂Up ▴
Intel(R) Threading Building Blocks Doxygen Documentation  version 4.2.3
tbb::flow::interface11::opencl_info::default_device_selector< Factory > Struct Template Reference

#include <flow_graph_opencl_node.h>

Collaboration diagram for tbb::flow::interface11::opencl_info::default_device_selector< Factory >:

Public Member Functions

opencl_device operator() (Factory &f)
 

Detailed Description

template<typename Factory>
struct tbb::flow::interface11::opencl_info::default_device_selector< Factory >

Definition at line 1187 of file flow_graph_opencl_node.h.

Member Function Documentation

◆ operator()()

template<typename Factory >
opencl_device tbb::flow::interface11::opencl_info::default_device_selector< Factory >::operator() ( Factory &  f)
inline

Definition at line 1188 of file flow_graph_opencl_node.h.

1188  {
1189  __TBB_ASSERT(!f.devices().empty(), "No available devices");
1190  return *(f.devices().begin());
1191  }
#define __TBB_ASSERT(predicate, comment)
No-op version of __TBB_ASSERT.
Definition: tbb_stddef.h:165

References __TBB_ASSERT.


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.