MFEM v4.8.0
Finite element discretization library
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Pages
mfem::KernelReporter Class Reference

Singleton class to report fallback kernels. More...

#include <kernel_reporter.hpp>

Static Public Member Functions

static void Enable ()
 Enable reporting of fallback kernels.
 
static void Disable ()
 Disable reporting of fallback kernels.
 
template<typename... Params>
static void ReportFallback (const std::string &kernel_name, Params &&... params)
 Report the fallback kernel with given parameters.
 

Detailed Description

Singleton class to report fallback kernels.

Writes the first call to a fallback kernel to mfem::err

Note
This class is only enabled when the environment variable MFEM_REPORT_KERNELS is set to a value other than 'NO' or if KernelReporter::Enable() is called.

Definition at line 61 of file kernel_reporter.hpp.

Member Function Documentation

◆ Disable()

static void mfem::KernelReporter::Disable ( )
inlinestatic

Disable reporting of fallback kernels.

Definition at line 82 of file kernel_reporter.hpp.

◆ Enable()

static void mfem::KernelReporter::Enable ( )
inlinestatic

Enable reporting of fallback kernels.

Definition at line 80 of file kernel_reporter.hpp.

◆ ReportFallback()

template<typename... Params>
static void mfem::KernelReporter::ReportFallback ( const std::string & kernel_name,
Params &&... params )
inlinestatic

Report the fallback kernel with given parameters.

Definition at line 85 of file kernel_reporter.hpp.


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