Mila
Deep Neural Network Library
Loading...
Searching...
No Matches
Mila::Dnn::Compute::CpuDevice Class Referenceexport

Class representing a CPU compute device. More...

Inheritance diagram for Mila::Dnn::Compute::CpuDevice:
Collaboration diagram for Mila::Dnn::Compute::CpuDevice:

Public Types

using MR = CpuMemoryResource
 Type alias for device memory resource.
 

Public Member Functions

constexpr DeviceType getDeviceType () const override
 Gets the type of this compute device.
 
std::string getName () const override
 Gets the name of this CPU device.
 
- Public Member Functions inherited from Mila::Dnn::Compute::ComputeDevice
virtual ~ComputeDevice ()=default
 Virtual destructor.
 

Detailed Description

Class representing a CPU compute device.

This class provides an interface to interact with CPU compute resources within the Mila framework. It defines CPU-specific behaviors and capabilities. Device registration is handled by the DeviceRegistrar class.

Member Typedef Documentation

◆ MR

Type alias for device memory resource.

Member Function Documentation

◆ getDeviceType()

constexpr DeviceType Mila::Dnn::Compute::CpuDevice::getDeviceType ( ) const
inlineconstexproverridevirtual

Gets the type of this compute device.

Returns
DeviceType The device type (CPU).

Implements Mila::Dnn::Compute::ComputeDevice.

◆ getName()

std::string Mila::Dnn::Compute::CpuDevice::getName ( ) const
inlineoverridevirtual

Gets the name of this CPU device.

Returns
std::string The device name ("CPU").

Implements Mila::Dnn::Compute::ComputeDevice.


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