Open3D (C++ API)  0.18.0+fcf98ee
Data Structures | Public Member Functions | Static Public Member Functions
open3d::utility::CPUInfo Class Reference

CPU information. More...

#include <CPUInfo.h>

Data Structures

struct  Impl

Public Member Functions

 ~CPUInfo ()=default
 CPUInfo (const CPUInfo &)=delete
void operator= (const CPUInfo &)=delete
int NumCores () const
int NumThreads () const
void Print () const
 Prints CPUInfo in the console. More...

Static Public Member Functions

static CPUInfoGetInstance ()

Detailed Description

CPU information.

Constructor & Destructor Documentation

◆ ~CPUInfo()

open3d::utility::CPUInfo::~CPUInfo ( )

◆ CPUInfo()

open3d::utility::CPUInfo::CPUInfo ( const CPUInfo )

Member Function Documentation

◆ GetInstance()

CPUInfo & open3d::utility::CPUInfo::GetInstance ( )

◆ NumCores()

int open3d::utility::CPUInfo::NumCores ( ) const

Returns the number of physical CPU cores. This is similar to boost::thread::physical_concurrency().

◆ NumThreads()

int open3d::utility::CPUInfo::NumThreads ( ) const

Returns the number of logical CPU cores. This returns the same result as std::thread::hardware_concurrency() or boost::thread::hardware_concurrency().

◆ operator=()

void open3d::utility::CPUInfo::operator= ( const CPUInfo )

◆ Print()

void open3d::utility::CPUInfo::Print ( ) const

Prints CPUInfo in the console.

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