cuda::experimental::stf::logical_data
Defined in include/cuda/experimental/__stf/internal/frozen_logical_data.cuh
-
template<class T>
class logical_data Represents typed logical data.
- Template Parameters
T – The type of the underlying data.
Instance getter for a given instance or the default instance
-
inline decltype(auto) instance(instance_id_t instance_id)
Assign a symbolic name for this object
-
inline logical_data &set_symbol(::std::string str)
Select a custom allocator for this logical data
-
inline logical_data &set_allocator(block_allocator_untyped custom_allocator)
Get hash value
-
inline size_t hash() const
Return a task_dep<T> object for reading and/or writing this logical data.
- tparam Pack
Additional parameter types for
task_dep<T>
’s constructor, if any
- param pack
Additional arguments for
task_dep<T>
’s constructor, if any
- return
task_dep<T> The object encapsulating access
Public Functions
-
logical_data() = default
Default constructor.
-
inline logical_data(logical_data_untyped &&u)
Constructor from an untyped logical data.
Warning : no checks are done to ensure the type used to create the untyped logical data matches, it is the responsability of the caller to ensure this is a valid conversion
Constructor.
- Template Parameters
U – Backend type
- Parameters
ctx – Backend context
instance – Reference instance used for initializing this logical data
dp – Data place
data_prereq –