Home | History | Annotate | Download | only in shootout

Lines Matching refs:nCPU

47 var nCPU = flag.Int("ncpu", 4, "number of cpus")
74 for i := 0; i < *nCPU; i++ {
81 c := make(chan int, *nCPU)
82 for i := 0; i < *nCPU; i++ {
83 go x.Times(i*len(v) / *nCPU, (i+1)*len(v) / *nCPU, u, c)
86 for i := 0; i < *nCPU; i++ {
87 go v.TimesTransp(i*len(v) / *nCPU, (i+1)*len(v) / *nCPU, x, c)
94 runtime.GOMAXPROCS(*nCPU)