cuDDL
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
cuddl::replica_tile Struct Reference

One all-to-all tile as a replicated_database search delivers it. More...

Collaboration diagram for cuddl::replica_tile:
[legend]

Public Member Functions

Result< host_batch_results const * > download () const
 Downloads the tile into the replica's reusable pinned buffer, which lives on its device's host NUMA node, and returns that buffer; valid until the replica's next tile.
 

Public Attributes

batch_result_tile tile
 Results in the replica's device memory; valid only during the callback.
 
cuda::stream_ref stream
 Stream ordering work on the tile's storage; work enqueued here finishes before reuse.
 
uint32_t replica {}
 Position of the replica's device in the devices the group was made for.
 
host_batch_results * host {}
 

Detailed Description

One all-to-all tile as a replicated_database search delivers it.

Definition at line 22 of file replicated_database.cuh.

Member Function Documentation

◆ download()

Result< host_batch_results const * > cuddl::replica_tile::download ( ) const
inline

Downloads the tile into the replica's reusable pinned buffer, which lives on its device's host NUMA node, and returns that buffer; valid until the replica's next tile.

Definition at line 33 of file replicated_database.cuh.

33 {
35 return static_cast<host_batch_results const*>(host);
36 }
#define CUDDL_TRY(expr)
Propagates a cuddl::Result failure from the enclosing function (GNU statement expression).
Definition error.hpp:225
Result< void > download(batch_result_tile const &tile, cuda::stream_ref stream, host_batch_results &host)
Copies a device tile's passing results into host's pinned buffers, growing them only when needed,...
host_batch_results * host
batch_result_tile tile
Results in the replica's device memory; valid only during the callback.
cuda::stream_ref stream
Stream ordering work on the tile's storage; work enqueued here finishes before reuse.
Here is the call graph for this function:

Member Data Documentation

◆ host

host_batch_results* cuddl::replica_tile::host {}

Definition at line 29 of file replicated_database.cuh.

29{};

◆ replica

uint32_t cuddl::replica_tile::replica {}

Position of the replica's device in the devices the group was made for.

Definition at line 28 of file replicated_database.cuh.

28{};

◆ stream

cuda::stream_ref cuddl::replica_tile::stream

Stream ordering work on the tile's storage; work enqueued here finishes before reuse.

Definition at line 26 of file replicated_database.cuh.

◆ tile

batch_result_tile cuddl::replica_tile::tile

Results in the replica's device memory; valid only during the callback.

Definition at line 24 of file replicated_database.cuh.


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