gem5  v21.1.0.2
Public Member Functions | Protected Attributes | List of all members
gem5::LdsChunk Class Reference

this represents a slice of the overall LDS, intended to be associated with an individual workgroup More...

#include <lds_state.hh>

Public Member Functions

 LdsChunk (const uint32_t x_size)
 
 LdsChunk ()
 
template<class T >
read (const uint32_t index)
 a read operation More...
 
template<class T >
void write (const uint32_t index, const T value)
 a write operation More...
 
std::vector< uint8_t >::size_type size () const
 get the size of this chunk More...
 

Protected Attributes

std::vector< uint8_t > chunk
 

Detailed Description

this represents a slice of the overall LDS, intended to be associated with an individual workgroup

Definition at line 58 of file lds_state.hh.

Constructor & Destructor Documentation

◆ LdsChunk() [1/2]

gem5::LdsChunk::LdsChunk ( const uint32_t  x_size)
inline

Definition at line 61 of file lds_state.hh.

◆ LdsChunk() [2/2]

gem5::LdsChunk::LdsChunk ( )
inline

Definition at line 66 of file lds_state.hh.

Member Function Documentation

◆ read()

template<class T >
T gem5::LdsChunk::read ( const uint32_t  index)
inline

a read operation

For reads that are outside the bounds of the LDS chunk allocated to this WG we return 0.

Definition at line 73 of file lds_state.hh.

References chunk, and gem5::MipsISA::index.

Referenced by gem5::Gcn3ISA::Inst_FLAT::initAtomicAccess(), gem5::VegaISA::Inst_DS::initDualMemRead(), gem5::Gcn3ISA::Inst_DS::initDualMemRead(), gem5::Gcn3ISA::Inst_DS::initMemRead(), gem5::VegaISA::Inst_DS::initMemRead(), and gem5::Gcn3ISA::Inst_FLAT::initMemRead().

◆ size()

std::vector<uint8_t>::size_type gem5::LdsChunk::size ( ) const
inline

get the size of this chunk

Definition at line 110 of file lds_state.hh.

References chunk.

◆ write()

template<class T >
void gem5::LdsChunk::write ( const uint32_t  index,
const T  value 
)
inline

Member Data Documentation

◆ chunk

std::vector<uint8_t> gem5::LdsChunk::chunk
protected

Definition at line 117 of file lds_state.hh.

Referenced by read(), size(), and write().


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

Generated on Tue Sep 21 2021 12:27:45 for gem5 by doxygen 1.8.17