Halide
Halide::MachineParams Struct Reference

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

#include <Pipeline.h>

Public Member Functions

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

Static Public Member Functions

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

Public Attributes

int parallelism
 Maximum level of parallelism avalaible. More...
 
uint64_t last_level_cache_size
 Size of the last-level cache (in bytes). More...
 
float 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 31 of file Pipeline.h.

Constructor & Destructor Documentation

◆ MachineParams() [1/2]

Halide::MachineParams::MachineParams ( int  parallelism,
uint64_t  llc,
float  balance 
)
inlineexplicit

Definition at line 40 of file Pipeline.h.

◆ MachineParams() [2/2]

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

Reconstruct a MachineParams from canonical string form.

Member Function Documentation

◆ generic()

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

Default machine parameters for generic CPU architecture.

◆ to_string()

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

Convert the MachineParams into canonical string form.

Member Data Documentation

◆ parallelism

int Halide::MachineParams::parallelism

Maximum level of parallelism avalaible.

Definition at line 33 of file Pipeline.h.

◆ last_level_cache_size

uint64_t Halide::MachineParams::last_level_cache_size

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

Definition at line 35 of file Pipeline.h.

◆ balance

float 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 38 of file Pipeline.h.


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