Home
last modified time | relevance | path

Searched refs:buffer (Results 1 – 25 of 30) sorted by relevance

12

/oneTBB/examples/graph/fgbzip2/
H A Dfgbzip2.cpp80 if (!buffer.isLast) { in operator ()()
89 buffer.outputBuffer.len = outSize; in operator ()()
91 return buffer; in operator ()()
106 void readChunk(Buffer& buffer) { in readChunk() argument
112 void writeChunk(const Buffer& buffer) { in writeChunk() argument
113 m_outputStream.write(buffer.b, buffer.len); in writeChunk()
178 BufferMsg buffer; in writingLoop() local
179 m_writeQueue.pop(buffer); in writingLoop()
180 while (!buffer.isLast) { in writingLoop()
182 m_writeQueue.pop(buffer); in writingLoop()
[all …]
/oneTBB/doc/main/tbb_userguide/design_patterns/
H A DLazy_Initialization.rst70 … Here you can see the code for the implementation. Already calculated values are stored in a buffer
80 std::uint64_t LazyFibHelper(int n, FibBuffer& buffer) {
85 // Calculate nth value only once and store it in the buffer.
88 oneapi::tbb::collaborative_call_once(buffer[n].first, [&]() {
90 oneapi::tbb::parallel_invoke([&] { a = LazyFibHelper(n - 2, buffer); },
91 [&] { b = LazyFibHelper(n - 1, buffer); });
92 buffer[n].second = a + b;
95 return buffer[n].second;
99 FibBuffer buffer(n+1);
100 return LazyFibHelper(n, buffer);
/oneTBB/test/common/
H A Dtest_follows_and_precedes_api.h63 tbb::flow::buffer_node<typename NodeType::output_type> buffer(g);
64 tbb::flow::make_edge(node, buffer);
71 …CHECK_MESSAGE((buffer.try_get(storage) && !buffer.try_get(storage)), "Not exact edge quantity was …
80 tbb::flow::buffer_node<typename NodeType::output_type> buffer(g);
81 tbb::flow::make_edge(node, buffer);
89 …CHECK_MESSAGE((buffer.try_get(storage) && !buffer.try_get(storage)), "Not exact edge quantity was …
181 buffer(tbb::flow::follows(successors[0], successors[1], successors[2]));
188 CHECK_MESSAGE((buffer.try_get(storage)), "Not exact edge quantity was made");
190 buffer.clear();
/oneTBB/test/tbb/
H A Dtest_collaborative_call_once.cpp385 std::uint64_t collaborative_recursive_fib(int n, FibBuffer& buffer) { in collaborative_recursive_fib() argument
389 tbb::collaborative_call_once(buffer[n].first, [&]() { in collaborative_recursive_fib()
391 tbb::parallel_invoke([&] { a = collaborative_recursive_fib(n - 2, buffer); }, in collaborative_recursive_fib()
392 [&] { b = collaborative_recursive_fib(n - 1, buffer); }); in collaborative_recursive_fib()
393 buffer[n].second = a + b; in collaborative_recursive_fib()
395 return buffer[n].second; in collaborative_recursive_fib()
399 FibBuffer buffer(n); in collaborative_recursive_fib() local
400 return collaborative_recursive_fib(n-1, buffer); in collaborative_recursive_fib()
/oneTBB/doc/main/reference/scalable_memory_pools/
H A Dfixed_pool_cls.rst9 A class for scalable memory allocation from a buffer of fixed size.
41 fixed_pool(void *buffer, size_t size);
57 .. cpp:function:: fixed_pool(void *buffer, size_t size)
59 …Effects**: Constructs a memory pool to manage the memory of size ``size`` pointed to by ``buffer``.
/oneTBB/examples/parallel_for/tachyon/src/
H A Dtrace.hpp58 char *buffer; member
80 char *buffer; member
H A Dtrace_rest.cpp82 writetgaregion(p.tga, p.iwidth, p.iheight, p.startx, p.starty, p.stopx, p.stopy, p.buffer); in thread_io()
83 free(p.buffer); /* free the buffer once we are done with it.. */ in thread_io()
H A Dtgafile.cpp123 char *buffer) { in writetgaregion() argument
134 bufpos = buffer + (totalx * 3) * (totaly - y - 1); in writetgaregion()
/oneTBB/examples/common/gui/
H A Dwinvideo.hpp218 char buffer[256], in loop_once() local
219 n = _snprintf(buffer, 128, "%s: %d fps", v->title, int(double(g_fps + g_skips) / sec)); in loop_once()
221 _snprintf(buffer + n, in loop_once()
226 SetWindowTextA(g_hAppWnd, buffer); in loop_once()
H A Dxvideo.cpp394 char buffer[256]; in next_frame() local
395 snprintf(buffer, in next_frame()
401 XStoreName(dpy, win, buffer); in next_frame()
/oneTBB/src/tbb/
H A Dtcm_adaptor.cpp59 tcm_result_t (*tcm_get_version_info)(char* buffer, uint32_t buffer_size){nullptr};
249 char buffer[1024]; in print_version() local
250 tcm_get_version_info(buffer, 1024); in print_version()
251 std::fprintf(stderr, "%.*s", 1024, buffer); in print_version()
H A Dtcm.h167 __TCM_EXPORT tcm_result_t tcmGetVersionInfo(char* buffer, uint32_t buffer_size);
/oneTBB/doc/main/tbb_userguide/
H A Dbroadcast_or_send.rst21 The nodes that push to only a single successor are all buffer nodes.
62 buffer policy set to rejecting. So, f1 and f2 do not internally buffer
75 node continues to buffer the message, should it eventually deliver the
H A DUsing_Circular_Buffers.rst11 circular buffer of size at least ``ntoken``, where ``ntoken`` is the
18 the time the circular buffer wraps around to reallocate an item, the
H A Duse_concurrency_limits.rst13 third argument controls the buffer policy used by the node, and is by
73 the ``input_node``, causing the ``input_node`` to buffer its last created
H A DPredefined_Node_Types.rst35 …o all successors. Its input and output are of the same generic type. It does not buffer messages.
37 …- Single-input, single-output nodes that buffer messages and send their output to one successor…
43 …- Single-input, single-output nodes that buffer a single message and broadcast their outputs to…
45 …the internal count, allowing further messages to be broadcast. The node does not buffer messages.
H A Dcreate_token_based_system.rst19 and a buffer policy:
29 The buffer policy can be one of the following:
120 dummy type; it could for example be a buffer or other object that is
H A Duse_graph_reset.rst11 left in a buffer. But even beyond remnants in the buffers, there are
H A DWhen_Not_to_Use_Queues.rst7 Queues are widely used in parallel programs to buffer consumers from
H A DFlow_Graph_Reservation.rst53 ``buffer_nodes`` buffer their output, so they accept a switch of their
54 output edge from push to pull mode. ``broadcast_nodes`` do not buffer
121 buffer messages, the message is dropped. Because not all the inputs to
/oneTBB/doc/main/reference/
H A Dmake_edges_function.rst71 buffer_node<int> buffer(g);
75 make_edges(handlers, buffer);
/oneTBB/test/tbbmalloc/
H A Dtest_scalable_allocator.cpp223 static char buffer[8*1024*1024]; variable
224 tbb::fixed_pool fixedPool(buffer, sizeof(buffer));
/oneTBB/test/conformance/
H A Dconformance_global_control.cpp367 static std::jmp_buf buffer; variable
371 std::longjmp(buffer, 1); in __anon3ebcafb90302()
378 if (setjmp(buffer) == 0) {
385 if (setjmp(buffer) == 0) {
/oneTBB/examples/graph/logic_sim/
H A Dbasics.hpp364 class buffer : public gate<1> { class
383 buffer(oneapi::tbb::flow::graph& g) : gate<1>(g, buffer_body()) {} in buffer() function in buffer
384 buffer(const buffer& src) : gate<1>(src.my_graph, buffer_body()) {} in buffer() function in buffer
385 ~buffer() {} in ~buffer()
/oneTBB/src/tbbmalloc_proxy/
H A Dproxy.cpp680 char buffer[sz]; in SkipReplacement()
682 char *dllStr = buffer; in SkipReplacement()

12