datacfg

package
v0.0.0-...-48104ab Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 14, 2016 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CalculatorCfg

type CalculatorCfg struct {
	Name        string
	MFlopsPerMb float64
}

ProcessorCfg is a representation of processor form data config

func (*CalculatorCfg) Info

func (conf *CalculatorCfg) Info() *types.CalculatorInfo

Info returns types.ProcessorInfo representation

type CalculatorCfgYAML

type CalculatorCfgYAML struct {
	Name        string
	MFlopsPerMb float64 `yaml:"mflops_per_mb"`
}

ProcessorCfgYAML is a representation of processor segment in data yaml file

type DataCfg

type DataCfg struct {
	Name        string
	Datasets    map[string]*DatasetCfg
	Calculators map[string]*CalculatorCfg
}

DataCfg is a representation of data config

func Load

func Load(dataFilename string) *DataCfg

Load parses data yaml file

type DatasetCfg

type DatasetCfg struct {
	Name string
	Size int
}

DatasetCfg is a representation of dataset in data config

func (*DatasetCfg) Info

func (conf *DatasetCfg) Info() *types.DatasetInfo

Info returns types.DatasetInfo representation

type DatasetCfgYAML

type DatasetCfgYAML struct {
	Name string
	Size int
}

DatasetCfgYAML is a representation of dataset segment in data yaml config

type YAML

type YAML struct {
	Name        string
	Datasets    []DatasetCfgYAML
	Calculators []CalculatorCfgYAML
}

YAML is a representation of data yaml file

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL