DPC++ Runtime
Runtime libraries for oneAPI DPC++
config.hpp File Reference
#include <detail/global_handler.hpp>
#include <sycl/backend_types.hpp>
#include <sycl/detail/defines.hpp>
#include <sycl/detail/device_filter.hpp>
#include <sycl/detail/pi.hpp>
#include <sycl/info/info_desc.hpp>
#include <algorithm>
#include <array>
#include <cstdlib>
#include <mutex>
#include <string>
#include <utility>
#include "config.def"
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.

Classes

class  sycl::_V1::detail::SYCLConfig< Config >
 
class  sycl::_V1::detail::SYCLConfig< SYCL_PI_TRACE >
 
class  sycl::_V1::detail::SYCLConfig< SYCL_RT_WARNING_LEVEL >
 
class  sycl::_V1::detail::SYCLConfig< SYCL_PARALLEL_FOR_RANGE_ROUNDING_TRACE >
 
class  sycl::_V1::detail::SYCLConfig< SYCL_DISABLE_PARALLEL_FOR_RANGE_ROUNDING >
 
class  sycl::_V1::detail::SYCLConfig< SYCL_PARALLEL_FOR_RANGE_ROUNDING_PARAMS >
 
class  sycl::_V1::detail::SYCLConfig< ONEAPI_DEVICE_SELECTOR >
 
class  sycl::_V1::detail::SYCLConfig< SYCL_ENABLE_DEFAULT_CONTEXTS >
 
class  sycl::_V1::detail::SYCLConfig< SYCL_QUEUE_THREAD_POOL_SIZE >
 
class  sycl::_V1::detail::SYCLConfig< SYCL_CACHE_PERSISTENT >
 
class  sycl::_V1::detail::SYCLConfig< SYCL_CACHE_DIR >
 
class  sycl::_V1::detail::SYCLConfig< SYCL_REDUCTION_PREFERRED_WORKGROUP_SIZE >
 

Namespaces

 sycl
 ---— Error handling, matching OpenCL plugin semantics.
 
 sycl::_V1
 
 sycl::_V1::detail
 

Macros

#define CONFIG(name, ...)   name,
 
#define CONFIG(Name, MaxSize, CompileTimeDef)
 
#define INVALID_CONFIG_EXCEPTION(BASE, MSG)
 

Enumerations

enum  sycl::_V1::detail::ConfigID { sycl::_V1::detail::START = 0 , sycl::_V1::detail::END }
 

Functions

constexpr const char * sycl::_V1::detail::getStrOrNullptr (const char *Str)
 
void sycl::_V1::detail::readConfig (bool ForceInitialization)
 
const std::array< std::pair< std::string, info::device_type >, 6 > & sycl::_V1::detail::getSyclDeviceTypeMap ()
 
const std::array< std::pair< std::string, backend >, 7 > & sycl::_V1::detail::getSyclBeMap ()
 
template<>
class sycl::_V1::detail::__SYCL2020_DEPRECATED ("Use SYCLConfig<ONEAPI_DEVICE_SELECTOR> instead") SYCLConfig< SYCL_DEVICE_FILTER >
 

Variables

constexpr bool sycl::_V1::detail::ConfigFromEnvEnabled = true
 
constexpr bool sycl::_V1::detail::ConfigFromFileEnabled = true
 
constexpr bool sycl::_V1::detail::ConfigFromCompileDefEnabled = true
 
constexpr int sycl::_V1::detail::MAX_CONFIG_NAME = 256
 
constexpr int sycl::_V1::detail::MAX_CONFIG_VALUE = 1024
 

Macro Definition Documentation

◆ CONFIG [1/2]

#define CONFIG (   Name,
  MaxSize,
  CompileTimeDef 
)

Definition at line 69 of file config.hpp.

◆ CONFIG [2/2]

#define CONFIG (   name,
  ... 
)    name,

Definition at line 69 of file config.hpp.

◆ INVALID_CONFIG_EXCEPTION

#define INVALID_CONFIG_EXCEPTION (   BASE,
  MSG 
)
Value:
sycl::exception(sycl::make_error_code(sycl::errc::invalid), \
"Invalid value for " + std::string{BASE::MConfigName} + \
" environment variable: " + MSG)
std::error_code make_error_code(sycl::errc E) noexcept
Constructs an error code using e and sycl_category()
Definition: exception.cpp:91

Definition at line 105 of file config.hpp.