Panzer
Version of the Day
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
disc-fe
src
papi
Panzer_PAPI_Counter.cpp
Go to the documentation of this file.
1
// @HEADER
2
// *****************************************************************************
3
// Panzer: A partial differential equation assembly
4
// engine for strongly coupled complex multiphysics systems
5
//
6
// Copyright 2011 NTESS and the Panzer contributors.
7
// SPDX-License-Identifier: BSD-3-Clause
8
// *****************************************************************************
9
// @HEADER
10
11
#include "
Panzer_PAPI_Counter.hpp
"
12
13
#include "krp.hpp"
14
namespace
panzer {
15
16
std::map<std::string,PAPICounter::InternalCounter>
PAPICounter::m_counters
;
17
18
PAPICounter::PAPICounter
(
const
std::string name,
const
int
my_rank, MPI_Comm comm)
19
: m_name(name), m_rank(my_rank), m_comm(comm)
20
{
21
22
}
23
24
void
PAPICounter::start
()
25
{
26
InternalCounter
& c =
m_counters
[
m_name
];
27
28
panzer::krp_init_(&
m_rank
,&c.
hw_counters
,&c.
rcy
,&c.
rus
,&c.
ucy
,&c.
uus
);
29
}
30
31
void
PAPICounter::stop
()
32
{
33
InternalCounter
& c =
m_counters
[
m_name
];
34
35
//panzer::krp_rpt_init_sum_(&m_rank,m_comm,&c.hw_counters,&c.rcy,&c.rus,&c.ucy,&c.uus,&c.rt_rus,&c.rt_ins,&c.rt_fp,&c.rt_dcm,&c.uus);
36
panzer::krp_rpt_init_sum_(&
m_rank
,
m_comm
,&c.
hw_counters
,&c.
rcy
,&c.
rus
,&c.
ucy
,&c.
uus
,&c.
rt_rus
,&c.
rt_ins
,&c.
rt_fp
,&c.
rt_dcm
,const_cast<char*>(
m_name
.c_str()));
37
}
38
39
void
PAPICounter::report
(std::ostream& os)
40
{
41
// InternalCounter& c = m_counters[m_name];
42
43
// panzer::krp_rpt_(&m_rank,m_comm,&c.hw_counters,&c.rcy,&c.rus,&c.ucy,&c.uus,const_cast<char*>(m_name.c_str()));
44
}
45
46
}
panzer::PAPICounter::m_name
std::string m_name
Definition:
Panzer_PAPI_Counter.hpp:62
panzer::PAPICounter::report
void report(std::ostream &os)
Definition:
Panzer_PAPI_Counter.cpp:39
panzer::PAPICounter::InternalCounter::uus
long long int uus
Definition:
Panzer_PAPI_Counter.hpp:27
panzer::PAPICounter::stop
void stop()
Definition:
Panzer_PAPI_Counter.cpp:31
panzer::PAPICounter::m_comm
MPI_Comm m_comm
Definition:
Panzer_PAPI_Counter.hpp:64
panzer::PAPICounter::PAPICounter
PAPICounter(const std::string, const int my_rank, MPI_Comm comm)
Definition:
Panzer_PAPI_Counter.cpp:18
panzer::PAPICounter::InternalCounter::ucy
long long int ucy
Definition:
Panzer_PAPI_Counter.hpp:26
panzer::PAPICounter::InternalCounter::rus
long long int rus
Definition:
Panzer_PAPI_Counter.hpp:25
panzer::PAPICounter::InternalCounter::rcy
long long int rcy
Definition:
Panzer_PAPI_Counter.hpp:24
panzer::PAPICounter::InternalCounter::rt_fp
long int rt_fp
Definition:
Panzer_PAPI_Counter.hpp:31
panzer::PAPICounter::start
void start()
Definition:
Panzer_PAPI_Counter.cpp:24
panzer::PAPICounter::InternalCounter
Definition:
Panzer_PAPI_Counter.hpp:22
Panzer_PAPI_Counter.hpp
panzer::PAPICounter::InternalCounter::rt_dcm
long int rt_dcm
Definition:
Panzer_PAPI_Counter.hpp:32
panzer::PAPICounter::InternalCounter::hw_counters
int hw_counters
Definition:
Panzer_PAPI_Counter.hpp:23
panzer::PAPICounter::m_counters
static std::map< std::string, InternalCounter > m_counters
dangerous in a multithreaded world!
Definition:
Panzer_PAPI_Counter.hpp:61
panzer::PAPICounter::m_rank
int m_rank
Definition:
Panzer_PAPI_Counter.hpp:63
panzer::PAPICounter::InternalCounter::rt_ins
long int rt_ins
Definition:
Panzer_PAPI_Counter.hpp:30
panzer::PAPICounter::InternalCounter::rt_rus
long int rt_rus
Definition:
Panzer_PAPI_Counter.hpp:29
Generated on Thu Nov 21 2024 09:17:09 for Panzer by
1.8.5