42 #define STRINGIFY(x) #x
43 #define CHECK_CPU_FLAGS(flag, env) \
45 flag = (getenv(env) == NULL); \
47 VLOG(1) << "Disabling " << STRINGIFY(flag) << " instruction set."; \
58 #undef CHECK_CPU_FLAGS
72 if (getenv(
"CYCLES_CUDA_ADAPTIVE_COMPILE") !=
NULL)
73 adaptive_compile =
true;
98 char *device = getenv(
"CYCLES_OPENCL_TEST");
100 if (strcmp(device,
"NONE") == 0) {
103 else if (strcmp(device,
"ALL") == 0) {
106 else if (strcmp(device,
"DEFAULT") == 0) {
109 else if (strcmp(device,
"CPU") == 0) {
112 else if (strcmp(device,
"GPU") == 0) {
115 else if (strcmp(device,
"ACCELERATOR") == 0) {
120 debug = (getenv(
"CYCLES_OPENCL_DEBUG") !=
NULL);
148 os <<
"CUDA flags:\n"
151 os <<
"OptiX flags:\n"
154 const char *opencl_device_type;
157 opencl_device_type =
"NONE";
160 opencl_device_type =
"ALL";
163 opencl_device_type =
"DEFAULT";
166 opencl_device_type =
"CPU";
169 opencl_device_type =
"GPU";
172 opencl_device_type =
"ACCELERATOR";
175 os <<
"OpenCL flags:\n"
176 <<
" Device type : " << opencl_device_type <<
"\n"
CCL_NAMESPACE_BEGIN const char * bvh_layout_name(BVHLayout layout)
bool running_inside_blender
#define CCL_NAMESPACE_END
std::ostream & operator<<(std::ostream &os, DebugFlagsConstRef debug_flags)
#define CHECK_CPU_FLAGS(flag, env)
string string_from_bool(bool var)
string string_human_readable_size(size_t size)