81 ++m_nb_loop_parallel_for;
82 m_nb_chunk_parallel_for += s.
nbChunk();
88 Int64 nbLoopParallelFor()
const {
return m_nb_loop_parallel_for.load(); }
89 Int64 nbChunkParallelFor()
const {
return m_nb_chunk_parallel_for.load(); }
90 Int64 totalTime()
const {
return m_total_time.load(); }
94 std::atomic<Int64> m_nb_loop_parallel_for = 0;
95 std::atomic<Int64> m_nb_chunk_parallel_for = 0;
96 std::atomic<Int64> m_total_time = 0;
141 Int64 m_nb_fault = 0;
145 enum class eMemoryTransferType
150 enum class eMemoryPageFaultType
158 void addMemoryTransfer(eMemoryTransferType type, Int64
nb_byte)
161 m_managed_memory_transfer_list[(int)type].merge(mem_info);
163 const MemoryTransferInfo& memoryTransfer(eMemoryTransferType type)
const
165 return m_managed_memory_transfer_list[(int)type];
167 void addMemoryPageFault(eMemoryPageFaultType type,
Int64 nb_byte)
169 MemoryPageFaultInfo mem_info{ nb_byte, 1 };
170 m_managed_memory_page_fault_list[(int)type].merge(mem_info);
172 const MemoryPageFaultInfo& memoryPageFault(eMemoryPageFaultType type)
const
174 return m_managed_memory_page_fault_list[(int)type];
179 void print(std::ostream& ostr)
const;
184 FixedArray<MemoryTransferInfo, 2> m_managed_memory_transfer_list;
187 FixedArray<MemoryPageFaultInfo, 2> m_managed_memory_page_fault_list;
Informations sur les défauts de page sur CPU ou GPU.