NamdProfileEvent Struct Reference

#include <NamdEventsProfiling.h>

List of all members.

Public Types

enum  Event

Detailed Description

Copyright (c) 1995, 1996, 1997, 1998, 1999, 2000 by The Board of Trustees of the University of Illinois. All rights reserved.

Definition at line 21 of file NamdEventsProfiling.h.


Member Enumeration Documentation

Definition at line 22 of file NamdEventsProfiling.h.

00022                {
00023     #define NAMD_PROFILE_EVENT(a,b) a,
00024     #include "NamdEventsProfiling.def"
00025     #undef NAMD_PROFILE_EVENT
00026     EventsCount
00027   } Event;
00028 };
00029 
00030 char const* const NamdProfileEventStr[] = {
00031   #define NAMD_PROFILE_EVENT(a,b) b,
00032   #include "NamdEventsProfiling.def"
00033   #undef NAMD_PROFILE_EVENT
00034   0
00035 };
00036 
00037 #undef NAMD_PROFILE_START
00038 #undef NAMD_PROFILE_STOP
00039 #undef NAMD_REGISTER_EVENT
00040 #undef NAMD_EVENT_START
00041 #undef NAMD_EVENT_START_EX
00042 #undef NAMD_EVENT_STOP
00043 #undef NAMD_EVENT_RANGE
00044 #undef NAMD_EVENT_RANGE_2
00045 
00046 //
00047 // Enable NVTX instrumentation for nvvp or Nsight profiling
00048 // NAMD_CUDA build by defining NAMD_NVTX_ENABLED in Make.config
00049 //
00050 #if defined(NAMD_CUDA) && defined(NAMD_NVTX_ENABLED)
00051 
00052 #include <nvToolsExt.h>
00053 #include <cuda_profiler_api.h>
00054 
00055 // start profiling
00056 #define NAMD_PROFILE_START() \
00057   do { \
00058     cudaProfilerStart(); \
00059   } while (0)  // must terminate with semi-colon
00060 
00061 // stop profiling
00062 #define NAMD_PROFILE_STOP() \
00063   do { \
00064     cudaProfilerStop(); \
00065   } while (0)  // must terminate with semi-colon
00066 
00067 // C++ note: declaring const variables implies static (internal) linkage,
00068 // and you have to explicitly specify "extern" to get external linkage.
00069 const uint32_t NAMD_nvtx_colors[] = {
00070   0x0000ff00,
00071   0x000000ff,
00072   0x00ffff00,
00073   0x00ff00ff,
00074   0x0000ffff,
00075   0x00ff0000,
00076   0x00006600,
00077   0x00663300,
00078   0x00000000,
00079   0x007300e6,
00080   0x00ff8c00,
00081 };
00082 const int NAMD_nvtx_colors_len = sizeof(NAMD_nvtx_colors)/sizeof(uint32_t);
00083 
00084 #define NAMD_REGISTER_EVENT(name,cid) \
00085   do { } while(0)  // must terminate with semi-colon
00086 
00087 // start recording an event
00088 #define NAMD_EVENT_START(eon,id) \
00089   do { \


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

Generated on 24 May 2020 for NAMD by  doxygen 1.6.1