PXL
config.hpp File Reference
#include <cstddef>
#include <cstdint>
#include <initializer_list>
Include dependency graph for config.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 pxl
 

Enumerations

enum class  pxl::LogType {
  pxl::Resource , pxl::Execution , pxl::Internal , pxl::All ,
  pxl::NumLogType = All
}
 
enum class  pxl::LogLevel { pxl::Error , pxl::Info , pxl::Debug }
 
enum class  pxl::LogDetail { pxl::None , pxl::TimeStamp , pxl::CodeLocation , pxl::All }
 
enum class  pxl::LogOutput { pxl::Stdout , pxl::Stderr , pxl::File }
 

Functions

void pxl::enableLog (const LogType &type, const LogLevel &level=LogLevel::Error, const LogDetail &detail=LogDetail::None)
 Configures logging settings for a specific log type. More...
 
void pxl::disableLog (const LogType &type)
 Disables logging for a specific log type. More...
 
void pxl::setOutput (const LogOutput &outputType, const char *filename=nullptr)
 Sets the output destination for log messages. More...
 
void pxl::registerSignalHandler (int32_t signalType)
 Registers a signal handler for a specific signal type. More...
 
void pxl::registerSignalHandler (const std::initializer_list< int32_t > &signalLists)
 Registers signal handlers for multiple signal types. More...
 
void pxl::flushHostCache (void *hostVirtualPtr, size_t size, bool opt=true)
 Flushes the host CPU cache for the specified memory range and records the range as written. More...
 
void pxl::flushHostCacheUntracked (void *hostVirtualPtr, size_t size, bool opt=true)
 Flushes the host CPU cache, and nothing else. More...
 
void pxl::invalidateHostCache (void *hostVirtualPtr, size_t size)
 Drops host cache lines over the range so a later read sees what the device wrote. More...