Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 718 for divides (0.2 sec)

  1. pkg/kubelet/cm/devicemanager/pod_devices.go

    	resources, exists := containers[contName]
    	if !exists {
    		return
    	}
    	for resource, devices := range resources {
    		allocatedResources[resource] = allocatedResources[resource].Difference(devices.deviceIds.Devices())
    	}
    }
    
    // Returns all devices allocated to the pods being tracked, keyed by resourceName.
    func (pdev *podDevices) devices() map[string]sets.Set[string] {
    	ret := make(map[string]sets.Set[string])
    	pdev.RLock()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Jan 27 02:10:25 UTC 2024
    - 16.7K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/ir/tf_ops_device_helper.cc

    bool CanUseGpuDevice(const RuntimeDevices &devices) {
      return llvm::any_of(devices.device_names(), IsGpuDevice);
    }
    
    // Returns true if all of the GPUs available at runtime support TensorCores
    // (NVIDIA compute capability >= 7.0).
    bool CanUseTensorCores(const RuntimeDevices &devices) {
      auto has_tensor_cores = [&](const DeviceNameUtils::ParsedName &device) {
        auto md = devices.GetGpuDeviceMetadata(device);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 21 08:41:18 UTC 2022
    - 2.4K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/utils/tpu_rewrite_device_util_test.cc

      std::vector<std::string> devices{
          "/job:localhost/replica:0/task:0/device:CPU:0"};
      devices.reserve(num_tasks * num_devices_per_task + num_tasks + 1);
    
      for (int task = 0; task < num_tasks; ++task) {
        devices.push_back(
            llvm::formatv("/job:worker/replica:0/task:{0}/device:CPU:0", task)
                .str());
        devices.push_back(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Apr 26 09:37:10 UTC 2024
    - 46.8K bytes
    - Viewed (0)
  4. tensorflow/compiler/jit/device_util.h

    //    same type.
    //  - GPU is preferred over CPU.
    //  - If `allow_mixing_unknown_and_cpu` is true then unknown devices are
    //    preferred over CPU.
    //  - XLA devices count as "unrecognized devices".
    //
    // This set of rules above implicitly assume that XLA:GPU can compile all
    // operations in the cluster that XLA:CPU can compile, and if
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 15 17:18:31 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  5. pkg/kubelet/apis/podresources/server_v1_test.go

    							{
    								Name:             containerName,
    								Devices:          []*podresourcesapi.ContainerDevices{},
    								DynamicResources: []*podresourcesapi.DynamicResource{},
    							},
    						},
    					},
    				},
    			},
    		},
    		{
    			desc:             "pod with devices",
    			pods:             pods,
    			devices:          devs,
    			cpus:             cpus,
    			memory:           memory,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 45.9K bytes
    - Viewed (0)
  6. pkg/kubelet/cm/devicemanager/checkpoint/checkpoint.go

    func New(devEntries []PodDevicesEntry, devices map[string][]string) DeviceManagerCheckpoint {
    	return newV2(devEntries, devices)
    }
    
    func newV2(devEntries []PodDevicesEntry, devices map[string][]string) DeviceManagerCheckpoint {
    	return &Data{
    		Data: checkpointData{
    			PodDeviceEntries:  devEntries,
    			RegisteredDevices: devices,
    		},
    	}
    }
    
    // MarshalCheckpoint returns marshalled data
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 15 12:01:56 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  7. src/math/bits/example_math_test.go

    	// Second number is 0<<32 + 3
    	n2 := []uint32{0, 3}
    	// Divide them together.
    	quo, rem := bits.Div32(n1[0], n1[1], n2[1])
    	nsum := []uint32{quo, rem}
    	fmt.Printf("[%v %v] / %v = %v\n", n1[0], n1[1], n2[1], nsum)
    
    	// First number is 2<<32 + 2147483648
    	n1 = []uint32{2, 0x80000000}
    	// Second number is 0<<32 + 2147483648
    	n2 = []uint32{0, 0x80000000}
    	// Divide them together.
    	quo, rem = bits.Div32(n1[0], n1[1], n2[1])
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 11 21:27:05 UTC 2021
    - 6.3K bytes
    - Viewed (0)
  8. pkg/kubelet/cm/devicemanager/types.go

    	Mounts []kubecontainer.Mount
    	// The host devices mapped into the container.
    	Devices []kubecontainer.DeviceInfo
    	// The Annotations for the container
    	Annotations []kubecontainer.Annotation
    	// CDI Devices for the container
    	CDIDevices []kubecontainer.CDIDevice
    }
    
    // TODO: evaluate whether we need this error definition.
    const (
    	errEndpointStopped = "endpoint %v has been stopped"
    )
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Sep 27 13:02:15 UTC 2023
    - 5K bytes
    - Viewed (0)
  9. tensorflow/compiler/jit/xla_gpu_device.cc

     public:
      Status ListPhysicalDevices(std::vector<string>* devices) override;
      Status CreateDevices(const SessionOptions& options, const string& name_prefix,
                           std::vector<std::unique_ptr<Device>>* devices) override;
    };
    
    Status XlaGpuDeviceFactory::ListPhysicalDevices(std::vector<string>* devices) {
      XlaDeviceFlags* flags = GetXlaDeviceFlags();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 22 08:47:20 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/tests/tpu_rewrite.mlir

    }
    
    // -----
    
    // Tests collecting compilation and execution devices results in an error.
    
    module attributes {tf.versions = {producer = 888 : i32}, tf.devices = ["/job:worker/replica:0/task:0/device:CPU:0", "/job:worker/replica:0/task:0/device:TPU:0"]} {
      func.func @bad_devices() {
        // expected-error@+1 {{error in fetching TPU compilation/execution devices: no TPU_SYSTEM devices found}}
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 22:03:30 UTC 2024
    - 172.9K bytes
    - Viewed (0)
Back to top