QUDA  1.0.0
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Classes | Namespaces | Macros | Typedefs | Functions | Variables
tune.cpp File Reference
#include <tune_quda.h>
#include <comm_quda.h>
#include <quda.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <cfloat>
#include <ctime>
#include <fstream>
#include <typeinfo>
#include <map>
#include <list>
#include <unistd.h>
#include <uint_to_char.h>
#include <deque>
#include <queue>
#include <functional>
Include dependency graph for tune.cpp:

Go to the source code of this file.

Classes

struct  quda::TraceKey
 
struct  quda::less_significant< T >
 

Namespaces

 quda
 

Macros

#define STR_(x)   #x
 
#define STR(x)   STR_(x)
 

Typedefs

typedef std::map< TuneKey, TuneParam > quda::map
 

Functions

quda::TuneKey getLastTuneKey ()
 
int quda::traceEnabled ()
 
void quda::postTrace_ (const char *func, const char *file, int line)
 Post an event in the trace, recording where it was posted. More...
 
bool quda::activeTuning ()
 query if tuning is in progress More...
 
void quda::disableProfileCount ()
 Disable the profile kernel counting. More...
 
void quda::enableProfileCount ()
 Enable the profile kernel counting. More...
 
const std::map< TuneKey, TuneParam > & quda::getTuneCache ()
 Returns a reference to the tunecache map. More...
 
static void quda::deserializeTuneCache (std::istream &in)
 
static void quda::serializeTuneCache (std::ostream &out)
 
static void quda::serializeProfile (std::ostream &out, std::ostream &async_out)
 
static void quda::serializeTrace (std::ostream &out)
 
static void quda::broadcastTuneCache ()
 
void quda::loadTuneCache ()
 
void quda::saveTuneCache (bool error=false)
 
bool quda::policyTuning ()
 
void quda::setPolicyTuning (bool)
 Enable / disable whether are tuning a policy. More...
 
void quda::flushProfile ()
 Flush profile contents, setting all counts to zero. More...
 
void quda::saveProfile (const std::string label="")
 Save profile to disk. More...
 
TuneParam & quda::tuneLaunch (Tunable &tunable, QudaTune enabled, QudaVerbosity verbosity)
 
void quda::printLaunchTimer ()
 

Variables

char * gitversion
 
static TuneKey quda::last_key
 
static std::list< TraceKey > quda::trace_list
 
static int quda::enable_trace = 0
 
static const std::string quda::quda_hash = QUDA_HASH
 
static std::string quda::resource_path
 
static map quda::tunecache
 
static map::iterator quda::it
 
static size_t quda::initial_cache_size = 0
 
static const std::string quda::quda_version = STR(QUDA_VERSION_MAJOR) "." STR(QUDA_VERSION_MINOR) "." STR(QUDA_VERSION_SUBMINOR)
 
static bool quda::tuning = false
 
static bool quda::profile_count = true
 
static bool quda::policy_tuning = false
 
static TimeProfile quda::launchTimer ("tuneLaunch")
 

Macro Definition Documentation

◆ STR

#define STR (   x)    STR_(x)

Definition at line 113 of file tune.cpp.

◆ STR_

#define STR_ (   x)    #x

Definition at line 112 of file tune.cpp.

Function Documentation

◆ getLastTuneKey()

quda::TuneKey getLastTuneKey ( )

Return the key of the last kernel that has been tuned / called.

Definition at line 25 of file tune.cpp.

References quda::last_key.

Referenced by quda::TuneKey::operator<().

Here is the caller graph for this function:

Variable Documentation

◆ gitversion

char* gitversion

Definition at line 4 of file version.cpp.

Referenced by quda::loadTuneCache(), quda::saveProfile(), and quda::saveTuneCache().