Halide
Halide::MachineParams Struct Reference

A struct representing the machine parameters to generate the auto-scheduled code for. More...

#include <AutoSchedule.h>

Public Member Functions

 MachineParams (int32_t parallelism, int32_t llc, int32_t balance)
 
EXPORT std::string to_string () const
 Convert the MachineParams into canonical string form. More...
 
EXPORT MachineParams (const std::string &s)
 Reconstruct a MachineParams from canonical string form. More...
 

Static Public Member Functions

static EXPORT MachineParams generic ()
 Default machine parameters for generic CPU architecture. More...
 

Public Attributes

Expr parallelism
 Maximum level of parallelism avalaible. More...
 
Expr last_level_cache_size
 Size of the last-level cache (in KB). More...
 
Expr balance
 Indicates how much more expensive is the cost of a load compared to the cost of an arithmetic operation at last level cache. More...
 

Detailed Description

A struct representing the machine parameters to generate the auto-scheduled code for.

Definition at line 16 of file AutoSchedule.h.

Constructor & Destructor Documentation

◆ MachineParams() [1/2]

Halide::MachineParams::MachineParams ( int32_t  parallelism,
int32_t  llc,
int32_t  balance 
)
inlineexplicit

Definition at line 25 of file AutoSchedule.h.

References EXPORT, Halide::Internal::generate_schedules(), and to_string().

◆ MachineParams() [2/2]

EXPORT Halide::MachineParams::MachineParams ( const std::string &  s)
explicit

Reconstruct a MachineParams from canonical string form.

Member Function Documentation

◆ generic()

static EXPORT MachineParams Halide::MachineParams::generic ( )
static

Default machine parameters for generic CPU architecture.

◆ to_string()

EXPORT std::string Halide::MachineParams::to_string ( ) const

Convert the MachineParams into canonical string form.

Referenced by MachineParams().

Member Data Documentation

◆ parallelism

Expr Halide::MachineParams::parallelism

Maximum level of parallelism avalaible.

Definition at line 18 of file AutoSchedule.h.

◆ last_level_cache_size

Expr Halide::MachineParams::last_level_cache_size

Size of the last-level cache (in KB).

Definition at line 20 of file AutoSchedule.h.

◆ balance

Expr Halide::MachineParams::balance

Indicates how much more expensive is the cost of a load compared to the cost of an arithmetic operation at last level cache.

Definition at line 23 of file AutoSchedule.h.


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