Blender V5.0
DeviceInfo Class Reference

#include <device.h>

Public Member Functions

 DeviceInfo ()=default
bool operator== (const DeviceInfo &info) const
bool operator!= (const DeviceInfo &info) const

Public Attributes

DeviceType type = DEVICE_CPU
string description
string id = "CPU"
int num = 0
bool display_device = false
bool has_nanovdb = false
bool has_mnee = true
bool has_osl = false
bool has_guiding = false
bool has_profiling = false
bool has_peer_memory = false
bool has_gpu_queue = false
bool use_hardware_raytracing = false
bool use_metalrt_by_default = false
bool has_execution_optimization = true
KernelOptimizationLevel kernel_optimization_level
DenoiserTypeMask denoisers = DENOISER_NONE
int cpu_threads = 0
vector< DeviceInfomulti_devices
string error_msg

Detailed Description

Definition at line 79 of file device/device.h.

Constructor & Destructor Documentation

◆ DeviceInfo()

DeviceInfo::DeviceInfo ( )
default

Referenced by operator!=(), and operator==().

Member Function Documentation

◆ operator!=()

bool DeviceInfo::operator!= ( const DeviceInfo & info) const
inline

Definition at line 118 of file device/device.h.

References DeviceInfo().

◆ operator==()

bool DeviceInfo::operator== ( const DeviceInfo & info) const
inline

Member Data Documentation

◆ cpu_threads

int DeviceInfo::cpu_threads = 0

◆ denoisers

◆ description

string DeviceInfo::description

◆ display_device

bool DeviceInfo::display_device = false

Definition at line 86 of file device/device.h.

Referenced by device_cuda_info(), device_hip_info(), and full_device_info_description().

◆ error_msg

string DeviceInfo::error_msg

Definition at line 106 of file device/device.h.

◆ has_execution_optimization

bool DeviceInfo::has_execution_optimization = true

Definition at line 98 of file device/device.h.

Referenced by available_devices_func().

◆ has_gpu_queue

bool DeviceInfo::has_gpu_queue = false

Definition at line 93 of file device/device.h.

Referenced by device_cuda_info(), and device_hip_info().

◆ has_guiding

bool DeviceInfo::has_guiding = false

Definition at line 90 of file device/device.h.

Referenced by device_cpu_info(), and Integrator::get_guiding_params().

◆ has_mnee

bool DeviceInfo::has_mnee = true

Definition at line 88 of file device/device.h.

Referenced by device_hip_info().

◆ has_nanovdb

bool DeviceInfo::has_nanovdb = false

◆ has_osl

bool DeviceInfo::has_osl = false

Definition at line 89 of file device/device.h.

Referenced by device_cpu_info().

◆ has_peer_memory

bool DeviceInfo::has_peer_memory = false

◆ has_profiling

bool DeviceInfo::has_profiling = false

Definition at line 91 of file device/device.h.

Referenced by device_cpu_info().

◆ id

string DeviceInfo::id = "CPU"

◆ kernel_optimization_level

KernelOptimizationLevel DeviceInfo::kernel_optimization_level
Initial value:

Definition at line 100 of file device/device.h.

Referenced by adjust_device_info(), and operator==().

◆ multi_devices

vector<DeviceInfo> DeviceInfo::multi_devices

◆ num

int DeviceInfo::num = 0

Definition at line 85 of file device/device.h.

Referenced by device_cpu_info(), device_cuda_info(), device_hip_info(), and operator==().

◆ type

◆ use_hardware_raytracing

◆ use_metalrt_by_default

bool DeviceInfo::use_metalrt_by_default = false

Definition at line 95 of file device/device.h.

Referenced by adjust_device_info_from_preferences().


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