Skip to content

Commit

Permalink
namespace things
Browse files Browse the repository at this point in the history
  • Loading branch information
jdolence committed Nov 7, 2023
1 parent 6cf5bc0 commit cda4e71
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/utils/instrument.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,15 @@
#define __UNIQUE_INST_VAR2(x, y) x##y
#define __UNIQUE_INST_VAR(x, y) __UNIQUE_INST_VAR2(x, y)
#define PARTHENON_INSTRUMENT \
KokkosTimer __UNIQUE_INST_VAR(internal_inst, __LINE__)(__FILE__, __LINE__, __func__);
parthenon::KokkosTimer __UNIQUE_INST_VAR(internal_inst, __LINE__)(__FILE__, __LINE__, \
__func__);
#define PARTHENON_INSTRUMENT_REGION(name) \
KokkosTimer __UNIQUE_INST_VAR(internal_inst_reg, __LINE__)(name);
parthenon::KokkosTimer __UNIQUE_INST_VAR(internal_inst_reg, __LINE__)(name);
#define PARTHENON_TRACE \
Trace __UNIQUE_INST_VAR(internal_trace, __LINE__)(__FILE__, __LINE__, __func__);
parthenon::Trace __UNIQUE_INST_VAR(internal_trace, __LINE__)(__FILE__, __LINE__, \
__func__);
#define PARTHENON_TRACE_REGION(name) \
Trace __UNIQUE_INST_VAR(internal_trace_reg, __LINE__)(name);
parthenon::Trace __UNIQUE_INST_VAR(internal_trace_reg, __LINE__)(name);
#define PARTHENON_AUTO_LABEL parthenon::build_auto_label(__FILE__, __LINE__, __func__)

namespace parthenon {
Expand Down

0 comments on commit cda4e71

Please sign in to comment.