Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for cpu20 (0.38 sec)

  1. src/cmd/trace/jsontrace_test.go

    }
    
    func checkExecutionTimes(t *testing.T, data format.Data) {
    	cpu10 := sumExecutionTime(filterViewerTrace(data, filterGoRoutineName("main.cpu10")))
    	cpu20 := sumExecutionTime(filterViewerTrace(data, filterGoRoutineName("main.cpu20")))
    	if cpu10 <= 0 || cpu20 <= 0 || cpu10 >= cpu20 {
    		t.Errorf("bad execution times: cpu10=%v, cpu20=%v", cpu10, cpu20)
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  2. src/cmd/trace/testdata/testprog/main.go

    	"syscall"
    	"time"
    )
    
    func main() {
    	if err := trace.Start(os.Stdout); err != nil {
    		log.Fatal(err)
    	}
    
    	// checkExecutionTimes relies on this.
    	var wg sync.WaitGroup
    	wg.Add(2)
    	go cpu10(&wg)
    	go cpu20(&wg)
    	wg.Wait()
    
    	// checkHeapMetrics relies on this.
    	allocHog(25 * time.Millisecond)
    
    	// checkProcStartStop relies on this.
    	var wg2 sync.WaitGroup
    	for i := 0; i < runtime.GOMAXPROCS(0); i++ {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 17:15:58 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/utils/device_util_test.cc

          mlir::ModuleOp::create(mlir::UnknownLoc::get(&context));
    
      const std::string cpu0 = "/job:worker/replica:0/task:0/device:CPU:0";
      const std::string gpu0 = "/job:worker/replica:1/task:2/device:GPU:0";
      const std::string gpu1 = "/job:worker/replica:1/task:2/device:GPU:1";
    
      llvm::SmallVector<std::unique_ptr<Device>, 2> devices;
      devices.push_back(FakeDevice::Make(cpu0));
      devices.push_back(FakeDevice::Make(gpu0, "compute capability: 7.0"));
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  4. src/internal/sysinfo/cpuinfo_linux.go

    	if err != nil && err != io.ErrUnexpectedEOF {
    		return err
    	}
    
    	return nil
    }
    
    func osCPUInfoName() string {
    	modelName := ""
    	cpuMHz := ""
    
    	// The 512-byte buffer is enough to hold the contents of CPU0
    	buf := make([]byte, 512)
    	err := readLinuxProcCPUInfo(buf)
    	if err != nil {
    		return ""
    	}
    
    	scanner := bufio.NewScanner(bytes.NewReader(buf))
    	for scanner.Scan() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 18:42:42 UTC 2024
    - 1.4K bytes
    - Viewed (0)
  5. src/vendor/golang.org/x/sys/cpu/cpu_netbsd_arm64.go

    		uintptr(unsafe.Pointer(&n)),
    		uintptr(0),
    		uintptr(0))
    	if errno != 0 {
    		return nil, errno
    	}
    	return &out, nil
    }
    
    func doinit() {
    	cpuid, err := sysctlCPUID("machdep.cpu0.cpu_id")
    	if err != nil {
    		setMinimalFeatures()
    		return
    	}
    	parseARM64SystemRegisters(cpuid.aa64isar0, cpuid.aa64isar1, cpuid.aa64pfr0)
    
    	Initialized = true
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 02 15:41:00 UTC 2020
    - 4.3K bytes
    - Viewed (0)
  6. tensorflow/cc/framework/while_gradients_test.cc

      CreateBackprop();
    
      Run<double>({1.0, 1.0}, {-2.0, 2.0});
      Run<double>({0.0, 0.0}, {-2.0, 2.0});
    }
    
    TEST_F(WhileGradientsTest, MultipleDevices) {
      // Make sure loop is created on cpu0
      scope_ = scope_.WithDevice("/cpu:0");
    
      // Create loop: while (i < 10) i += j
      Init(2);
      CreateLoop(
          [](const Scope& s, const std::vector<Output>& inputs, Output* output) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 27 20:32:17 UTC 2017
    - 7.7K bytes
    - Viewed (0)
Back to top