Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for numCPU (0.12 sec)

  1. src/sync/atomic/atomic_test.go

    				}
    				c <- 1
    			}()
    		}
    		for p := 0; p < procs; p++ {
    			<-c
    		}
    	}
    }
    
    func TestStoreLoadSeqCst32(t *testing.T) {
    	if runtime.NumCPU() == 1 {
    		t.Skipf("Skipping test on %v processor machine", runtime.NumCPU())
    	}
    	defer runtime.GOMAXPROCS(runtime.GOMAXPROCS(4))
    	N := int32(1e3)
    	if testing.Short() {
    		N = int32(1e2)
    	}
    	c := make(chan bool, 2)
    	X := [2]int32{}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:37:29 UTC 2024
    - 71.4K bytes
    - Viewed (0)
  2. src/cmd/dist/test.go

    				}
    			}
    			timelog("end", w.dt.name)
    			w.end <- struct{}{}
    		}(w)
    	}
    
    	maxbg := maxbg
    	// for runtime.NumCPU() < 4 ||  runtime.GOMAXPROCS(0) == 1, do not change maxbg.
    	// Because there is not enough CPU to parallel the testing of multiple packages.
    	if runtime.NumCPU() > 4 && runtime.GOMAXPROCS(0) != 1 {
    		for _, w := range worklist {
    			// See go.dev/issue/65164
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 16:01:35 UTC 2024
    - 50K bytes
    - Viewed (0)
  3. src/cmd/internal/testdir/testdir_test.go

    }
    
    // defaultRunOutputLimit returns the number of runoutput tests that
    // can be executed in parallel.
    func defaultRunOutputLimit() int {
    	const maxArmCPU = 2
    
    	cpu := runtime.NumCPU()
    	if runtime.GOARCH == "arm" && cpu > maxArmCPU {
    		cpu = maxArmCPU
    	}
    	return cpu
    }
    
    func TestShouldTest(t *testing.T) {
    	if *shard != 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 20:08:06 UTC 2024
    - 57.5K bytes
    - Viewed (0)
  4. src/cmd/link/internal/ld/lib.go

    }
    
    // hostobjCopy creates a copy of the object files in hostobj in a
    // temporary directory.
    func (ctxt *Link) hostobjCopy() (paths []string) {
    	var wg sync.WaitGroup
    	sema := make(chan struct{}, runtime.NumCPU()) // limit open file descriptors
    	for i, h := range hostobj {
    		h := h
    		dst := filepath.Join(*flagTmpdir, fmt.Sprintf("%06d.o", i))
    		paths = append(paths, dst)
    		if ctxt.Debugvlog != 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 18:45:27 UTC 2024
    - 88.6K bytes
    - Viewed (0)
Back to top