Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Trials uint ErrorProbability []float64 Threads uint )
View Source
var BecRun = func(cmd *cobra.Command, args []string) { if len(args) != 2 { fmt.Println("requires both ECC_JSON_FILE RESULT_JSON") return } ecc, err := tools.LoadLinearBlockECC(args[0]) if err != nil { fmt.Println(err) return } data, err := tools.LoadResults(args[1]) if err != nil { fmt.Println(err) return } if data == nil { data = &tools.SimulationStats{ TypeInfo: typeInfo(), ECCInfo: tools.Md5Sum(ecc.H), Stats: make(map[float64]benchmarking.Stats), } } if data.TypeInfo != typeInfo() { fmt.Printf("csv loaded does not match the same type expected %v but found %v\n", typeInfo(), data.TypeInfo) return } if data.ECCInfo != tools.Md5Sum(ecc.H) { fmt.Printf("csv loaded does not match the ECC") return } sigs := make(chan os.Signal, 1) signal.Notify(sigs, syscall.SIGINT, syscall.SIGTERM) ctx, cancel := context.WithCancel(context.Background()) go func() { sig := <-sigs fmt.Println() fmt.Println(sig) cancel() }() runSimulation(ctx, data, ecc, args[1]) err = tools.SaveResults(args[1], data) if err != nil { fmt.Println(err) } }
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.