QUDA  v1.1.0
A library for QCD on GPUs
Functions
util_quda.cpp File Reference
#include <cstdlib>
#include <cstdio>
#include <cstring>
#include <stack>
#include <sstream>
#include <sys/time.h>
#include <enum_quda.h>
#include <util_quda.h>
#include <malloc_quda.h>

Go to the source code of this file.

Functions

QudaVerbosity getVerbosity ()
 
char * getOutputPrefix ()
 
FILE * getOutputFile ()
 
void setVerbosity (QudaVerbosity verbosity)
 
bool getRankVerbosity ()
 This function returns true if the calling rank is enabled for verbosity (e.g., whether printQuda and warningQuda will print out from this rank). More...
 
QudaTune getTuning ()
 Query whether autotuning is enabled or not. Default is enabled but can be overridden by setting QUDA_ENABLE_TUNING=0. More...
 
void setOutputPrefix (const char *prefix)
 
void setOutputFile (FILE *outfile)
 
void pushVerbosity (QudaVerbosity verbosity)
 Push a new verbosity onto the stack. More...
 
void popVerbosity ()
 Pop the verbosity restoring the prior one on the stack. More...
 
void pushOutputPrefix (const char *prefix)
 Push a new output prefix onto the stack. More...
 
void popOutputPrefix ()
 Pop the output prefix restoring the prior one on the stack. More...
 
char * getPrintBuffer ()
 
char * getOmpThreadStr ()
 Returns a string of the form ",omp_threads=$OMP_NUM_THREADS", which can be used for storing the number of OMP threads for CPU functions recorded in the tune cache. More...
 

Function Documentation

◆ getOmpThreadStr()

char* getOmpThreadStr ( )

Returns a string of the form ",omp_threads=$OMP_NUM_THREADS", which can be used for storing the number of OMP threads for CPU functions recorded in the tune cache.

Returns
Returns the string

Definition at line 134 of file util_quda.cpp.

◆ getOutputFile()

FILE* getOutputFile ( )

Definition at line 23 of file util_quda.cpp.

◆ getOutputPrefix()

char* getOutputPrefix ( )

Definition at line 22 of file util_quda.cpp.

◆ getPrintBuffer()

char* getPrintBuffer ( )

Definition at line 132 of file util_quda.cpp.

◆ getRankVerbosity()

bool getRankVerbosity ( )

This function returns true if the calling rank is enabled for verbosity (e.g., whether printQuda and warningQuda will print out from this rank).

Returns
Return whether this rank will print

Definition at line 30 of file util_quda.cpp.

◆ getTuning()

QudaTune getTuning ( )

Query whether autotuning is enabled or not. Default is enabled but can be overridden by setting QUDA_ENABLE_TUNING=0.

Returns
If autotuning is enabled

Definition at line 52 of file util_quda.cpp.

◆ getVerbosity()

QudaVerbosity getVerbosity ( )

Definition at line 21 of file util_quda.cpp.

◆ popOutputPrefix()

void popOutputPrefix ( )

Pop the output prefix restoring the prior one on the stack.

Definition at line 121 of file util_quda.cpp.

◆ popVerbosity()

void popVerbosity ( )

Pop the verbosity restoring the prior one on the stack.

Definition at line 94 of file util_quda.cpp.

◆ pushOutputPrefix()

void pushOutputPrefix ( const char *  prefix)

Push a new output prefix onto the stack.

Definition at line 105 of file util_quda.cpp.

◆ pushVerbosity()

void pushVerbosity ( QudaVerbosity  verbosity)

Push a new verbosity onto the stack.

Definition at line 83 of file util_quda.cpp.

◆ setOutputFile()

void setOutputFile ( FILE *  outfile)

Definition at line 75 of file util_quda.cpp.

◆ setOutputPrefix()

void setOutputPrefix ( const char *  prefix)

Definition at line 69 of file util_quda.cpp.

◆ setVerbosity()

void setVerbosity ( QudaVerbosity  verbosity)

Definition at line 25 of file util_quda.cpp.