34 explicit Device(
const std::string& device_type,
int device_id);
37 explicit Device(
const std::string& type_colon_id);
115 return std::hash<std::string>{}(device.
ToString());
bool IsSYCL() const
Returns true iff device type is SYCL GPU.
Definition: Device.h:52
bool IsAvailable() const
Returns true if the device is available.
Definition: Device.cpp:107
int GetID() const
Returns the device index (within the same device type).
Definition: Device.h:61
DeviceType
Type for device.
Definition: Device.h:21
static std::vector< Device > GetAvailableSYCLDevices()
Returns a vector of available SYCL device.
Definition: Device.cpp:139
bool operator!=(const Device &other) const
Definition: Device.cpp:80
DeviceType device_type_
Definition: Device.h:82
static void PrintAvailableDevices()
Print all available devices.
Definition: Device.cpp:143
bool operator==(const Device &other) const
Definition: Device.cpp:75
bool IsCPU() const
Returns true iff device type is CPU.
Definition: Device.h:46
Device()=default
Default constructor -> "CPU:0".
static std::vector< Device > GetAvailableCPUDevices()
Returns a vector of available CPU device.
Definition: Device.cpp:127
bool operator<(const Device &other) const
Definition: Device.cpp:84
bool IsCUDA() const
Returns true iff device type is CUDA.
Definition: Device.h:49
int device_id_
Definition: Device.h:83
static std::vector< Device > GetAvailableCUDADevices()
Returns a vector of available CUDA device.
Definition: Device.cpp:131
std::string ToString() const
Returns string representation of device, e.g. "CPU:0", "CUDA:0".
Definition: Device.cpp:88
static std::vector< Device > GetAvailableDevices()
Returns a vector of available devices.
Definition: Device.cpp:116
DeviceType GetType() const
Returns type of the device, e.g. DeviceType::CPU, DeviceType::CUDA.
Definition: Device.h:58
bool IsCUDA() const
Definition: Device.h:99
virtual core::Device GetDevice() const =0
bool IsSYCL() const
Definition: Device.h:103
bool IsCPU() const
Definition: Device.h:95
virtual ~IsDevice()=default
const char const char value recording_handle imu_sample recording_handle uint8_t size_t data_size k4a_record_configuration_t config target_format k4a_capture_t capture_handle k4a_imu_sample_t imu_sample playback_handle k4a_logging_message_cb_t void min_level device_handle k4a_imu_sample_t timeout_in_ms capture_handle capture_handle capture_handle image_handle temperature_c k4a_image_t image_handle uint8_t image_handle image_handle image_handle image_handle image_handle timestamp_usec white_balance image_handle k4a_device_configuration_t config device_handle char size_t serial_number_size bool int32_t int32_t int32_t int32_t k4a_color_control_mode_t default_mode value const const k4a_calibration_t calibration char size_t
Definition: K4aPlugin.cpp:719
Definition: PinholeCameraIntrinsic.cpp:16
std::size_t operator()(const open3d::core::Device &device) const
Definition: Device.h:114