rocPRIM
Public Member Functions | Public Attributes | List of all members
detail::temp_storage::simple_partition< T > Struct Template Reference

This structure describes a single required partition of temporary global memory, as well as where to store the allocated pointer. More...

#include <temp_storage.hpp>

Collaboration diagram for detail::temp_storage::simple_partition< T >:
Collaboration graph
[legend]

Public Member Functions

layout get_layout ()
 Compute the required layout for this type and return it.
 
void set_storage (void *const storage)
 Assigns the final storage for this partition. More...
 

Public Attributes

T ** dest
 The location to store the pointer to the partitioned memory.
 
layout storage_layout
 The required memory layout of the memory that this partition should get.
 

Detailed Description

template<typename T>
struct detail::temp_storage::simple_partition< T >

This structure describes a single required partition of temporary global memory, as well as where to store the allocated pointer.

Template Parameters
T- The base type to allocate temporary memory for.

Member Function Documentation

◆ set_storage()

template<typename T >
void detail::temp_storage::simple_partition< T >::set_storage ( void *const  storage)
inline

Assigns the final storage for this partition.

storage is assumed to have the required alignment and size as described by the layout returned by get_layout().

Parameters
storage- Base pointer to the storage to be used for this partition.

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