|
FEAT 3
Finite Element Analysis Toolbox
|
Memory Arbiter memory block class. More...
Public Member Functions | |
| Block (Block &&other)=delete | |
| Block (const Block &)=delete | |
| no copy constructor | |
| void | alloc (Location mem_loc, Init mem_ini) |
| void | copy_from (const Block &source, Location mem_loc, std::size_t this_offset, std::size_t src_offset, std::size_t size) |
| void | copy_from (const void *src_ptr, Location src_loc, Location mem_loc, std::size_t this_offset, std::size_t size) |
| void | copy_to (void *dst_ptr, Location dst_loc, std::size_t this_offset, std::size_t size) const |
| void | create (std::size_t bytes_, Location loc_, Init all_) |
| void | format (Location mem_loc, std::size_t this_offset, std::size_t size) |
| void | format_random (Location mem_loc, std::size_t this_offset, std::size_t size) |
| void | free (Location mem_loc) |
| void | free_unmapped (Location mem_loc) |
| Lock | lock_mutex () const |
| locks the arbiter mutex assigned to this memory block More... | |
| View | map_view (Location mem_loc, Access access, std::size_t offset, std::size_t size) |
| Block & | operator= (Block &&other)=delete |
| Block & | operator= (const Block &)=delete |
| no copy-assign operator | |
| void | release_view (const View &view) |
| bool | uses_same_lock (const Block &other) const |
| checks wether another block is assigned to the same mutex as this block More... | |
Static Public Member Functions | |
| static Block * | attach (Block *block) |
| static bool | detach (Block *block) |
Public Attributes | |
| std::size_t | bytes |
| total size of memory block in bytes More... | |
| void * | mem_cuda |
| memory block pointer to cuda device memory More... | |
| void * | mem_main |
| memory block pointer to main (host) memory More... | |
| std::size_t | read_views_cuda |
| number of currently active cuda memory views with read access More... | |
| std::size_t | read_views_main |
| number of currently active main memory views with read access More... | |
| std::size_t | ref_count |
| total number of references to this memory block More... | |
| Location | valid_locations |
| combination of all currently up-to-date memory locations More... | |
| Location | write_location |
| location of current write view More... | |
| bool | write_overlap |
| specifies whether the write view(s) can be overlapped More... | |
| std::size_t | write_views |
| number of currently active write views More... | |
Static Public Attributes | |
| static constexpr std::size_t | full_size = ~std::size_t(0) |
| full size More... | |
Private Member Functions | |
| void | _alloc (Location mem_loc, Init mem_ini) |
| void | _alloc_cuda (Init mem_ini) |
| void | _alloc_main (Init mem_ini) |
| void | _copy_cuda_from_cuda (const void *mem_cuda_src, std::size_t this_offset, std::size_t size) |
| void | _copy_cuda_from_main (const void *mem_main_src, std::size_t this_offset, std::size_t size) |
| void | _copy_cuda_to_cuda (void *mem_cuda_dst, std::size_t this_offset, std::size_t size) const |
| void | _copy_cuda_to_main (void *mem_main_dst, std::size_t this_offset, std::size_t size) const |
| void | _copy_from (const Block &source, Location mem_loc, std::size_t this_offset, std::size_t src_offset, std::size_t size) |
| void | _copy_from (const void *src_ptr, Location src_loc, Location mem_loc, std::size_t this_offset, std::size_t size) |
| void | _copy_main_from_cuda (const void *mem_cuda_src, std::size_t this_offset, std::size_t size) |
| void | _copy_main_from_main (const void *mem_main_src, std::size_t this_offset, std::size_t size) |
| void | _copy_main_from_uptodate () |
| void | _copy_main_to (Location mem_loc) |
| void | _copy_main_to_cuda (void *mem_cuda_dst, std::size_t this_offset, std::size_t size) const |
| void | _copy_main_to_main (void *mem_main_dst, std::size_t this_offset, std::size_t size) const |
| void | _copy_to (void *dst_ptr, Location dst_loc, std::size_t this_offset, std::size_t size) const |
| void | _free_cuda () |
| void | _free_main () |
| bool | _is_mapped_any () const |
| bool | _is_mapped_any_read () const |
| bool | _is_mapped_any_write () const |
| bool | _is_mapped_cuda () const |
| bool | _is_mapped_cuda_read () const |
| bool | _is_mapped_cuda_write () const |
| bool | _is_mapped_main () const |
| bool | _is_mapped_main_read () const |
| bool | _is_mapped_main_write () const |
| bool | _is_write_overlapped () const |
| void | _reset () |
Memory Arbiter memory block class.
This class is used internally by the Memory::Arbiter class to store all relevant data that is managed by the arbiter. This class is only defined internally and cannot be used directly by anyone else than the arbiter.
Definition at line 60 of file memory_arbiter.cpp.
|
inline |
Definition at line 121 of file memory_arbiter.cpp.
|
inline |
Definition at line 135 of file memory_arbiter.cpp.
Definition at line 726 of file memory_arbiter.cpp.
|
inlineprivate |
Definition at line 695 of file memory_arbiter.cpp.
|
inlineprivate |
Definition at line 663 of file memory_arbiter.cpp.
|
inlineprivate |
Definition at line 811 of file memory_arbiter.cpp.
|
inlineprivate |
Definition at line 782 of file memory_arbiter.cpp.
|
inlineprivate |
Definition at line 959 of file memory_arbiter.cpp.
|
inlineprivate |
Definition at line 939 of file memory_arbiter.cpp.
|
inlineprivate |
Definition at line 857 of file memory_arbiter.cpp.
|
inlineprivate |
Definition at line 889 of file memory_arbiter.cpp.
|
inlineprivate |
Definition at line 796 of file memory_arbiter.cpp.
|
inlineprivate |
Definition at line 768 of file memory_arbiter.cpp.
|
inlineprivate |
Definition at line 825 of file memory_arbiter.cpp.
|
inlineprivate |
Definition at line 847 of file memory_arbiter.cpp.
|
inlineprivate |
Definition at line 949 of file memory_arbiter.cpp.
|
inlineprivate |
Definition at line 929 of file memory_arbiter.cpp.
|
inlineprivate |
Definition at line 968 of file memory_arbiter.cpp.
|
inlineprivate |
Definition at line 755 of file memory_arbiter.cpp.
|
inlineprivate |
Definition at line 742 of file memory_arbiter.cpp.
|
inlineprivate |
Definition at line 612 of file memory_arbiter.cpp.
|
inlineprivate |
Definition at line 617 of file memory_arbiter.cpp.
|
inlineprivate |
Definition at line 622 of file memory_arbiter.cpp.
|
inlineprivate |
Definition at line 627 of file memory_arbiter.cpp.
|
inlineprivate |
Definition at line 632 of file memory_arbiter.cpp.
|
inlineprivate |
Definition at line 637 of file memory_arbiter.cpp.
|
inlineprivate |
Definition at line 642 of file memory_arbiter.cpp.
|
inlineprivate |
Definition at line 647 of file memory_arbiter.cpp.
|
inlineprivate |
Definition at line 652 of file memory_arbiter.cpp.
|
inlineprivate |
Definition at line 657 of file memory_arbiter.cpp.
|
inlineprivate |
Definition at line 598 of file memory_arbiter.cpp.
Definition at line 227 of file memory_arbiter.cpp.
Definition at line 186 of file memory_arbiter.cpp.
|
inline |
Definition at line 258 of file memory_arbiter.cpp.
|
inline |
Definition at line 298 of file memory_arbiter.cpp.
|
inline |
Definition at line 329 of file memory_arbiter.cpp.
Definition at line 165 of file memory_arbiter.cpp.
|
inlinestatic |
Definition at line 197 of file memory_arbiter.cpp.
|
inline |
Definition at line 353 of file memory_arbiter.cpp.
|
inline |
Definition at line 400 of file memory_arbiter.cpp.
|
inline |
Definition at line 233 of file memory_arbiter.cpp.
|
inline |
Definition at line 242 of file memory_arbiter.cpp.
|
inline |
locks the arbiter mutex assigned to this memory block
Definition at line 152 of file memory_arbiter.cpp.
|
inline |
Definition at line 431 of file memory_arbiter.cpp.
|
inline |
Definition at line 563 of file memory_arbiter.cpp.
|
inline |
checks wether another block is assigned to the same mutex as this block
Definition at line 158 of file memory_arbiter.cpp.
| std::size_t FEAT::Memory::Block::bytes |
total size of memory block in bytes
Definition at line 74 of file memory_arbiter.cpp.
Referenced by FEAT::Memory::Arbiter::Arbiter(), FEAT::Memory::Arbiter::attach(), FEAT::Memory::Arbiter::block_bytes(), FEAT::Memory::Arbiter::bytes(), FEAT::Memory::Arbiter::clone(), and FEAT::Memory::Arbiter::copy().
|
staticconstexpr |
full size
Definition at line 64 of file memory_arbiter.cpp.
| void* FEAT::Memory::Block::mem_cuda |
memory block pointer to cuda device memory
Definition at line 84 of file memory_arbiter.cpp.
| void* FEAT::Memory::Block::mem_main |
memory block pointer to main (host) memory
Definition at line 79 of file memory_arbiter.cpp.
| std::size_t FEAT::Memory::Block::read_views_cuda |
number of currently active cuda memory views with read access
Definition at line 113 of file memory_arbiter.cpp.
| std::size_t FEAT::Memory::Block::read_views_main |
number of currently active main memory views with read access
Definition at line 108 of file memory_arbiter.cpp.
| std::size_t FEAT::Memory::Block::ref_count |
total number of references to this memory block
Definition at line 69 of file memory_arbiter.cpp.
| Location FEAT::Memory::Block::valid_locations |
combination of all currently up-to-date memory locations
This enum holds the combination of all memory locations which are currently up-to-date.
Definition at line 91 of file memory_arbiter.cpp.
Referenced by FEAT::Memory::Arbiter::location().
| Location FEAT::Memory::Block::write_location |
location of current write view
This holds the location of the currently open write view(s).
Definition at line 98 of file memory_arbiter.cpp.
| bool FEAT::Memory::Block::write_overlap |
specifies whether the write view(s) can be overlapped
Definition at line 118 of file memory_arbiter.cpp.
| std::size_t FEAT::Memory::Block::write_views |
number of currently active write views
Definition at line 103 of file memory_arbiter.cpp.