A singleton class that manages the prefetching configuration. More...
#include <prefetch.hpp>
Public Member Functions | |
prefetch_config & | operator= (const prefetch_config &)=delete |
prefetch_config (const prefetch_config &)=delete | |
bool | get (std::string_view key) |
Get the value of a configuration key. More... | |
void | set (std::string_view key, bool value) |
Set the value of a configuration key. More... | |
Static Public Member Functions | |
static prefetch_config & | instance () |
Get the singleton instance of the prefetching configuration. More... | |
Public Attributes | |
bool | debug {false} |
Enable or disable debug mode. More... | |
A singleton class that manages the prefetching configuration.
Definition at line 36 of file prefetch.hpp.
bool cudf::experimental::prefetch::detail::prefetch_config::get | ( | std::string_view | key | ) |
Get the value of a configuration key.
If the key does not exist, a false
value will be returned.
key | The configuration key. |
|
static |
Get the singleton instance of the prefetching configuration.
void cudf::experimental::prefetch::detail::prefetch_config::set | ( | std::string_view | key, |
bool | value | ||
) |
Set the value of a configuration key.
This is a thread-safe operation.
key | The configuration key. |
value | The value to set. |
bool cudf::experimental::prefetch::detail::prefetch_config::debug {false} |
Enable or disable debug mode.
In debug mode, the pointers being prefetched are printed to stderr.
Definition at line 71 of file prefetch.hpp.