Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,899 for Devices (0.13 sec)

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

    				},
    				CDIDevices: []kubecontainer.CDIDevice{
    					{Name: "vendor1.com/class1=device1"},
    					{Name: "vendor2.com/class2=device2"},
    					{Name: "vendor3.com/class3=device3"},
    					{Name: "vendor4.com/class4=device4"},
    				},
    			},
    		},
    		{
    			description: "duplicate cdi devices are skipped",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/utils/tpu_rewrite_device_util.cc

          task_and_device = {task, device};
        }
      }
    
      return topology;
    }
    
    // Determine execution devices when topology and device assignment are defined.
    // With a topology device coordinate to task and device mapping, device
    // assignment device coordinates can then be mapped to task and device for TPU
    // devices. The device assignment array is also validated.
    //
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Jun 10 20:10:40 UTC 2024
    - 32.8K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/utils/device_util.cc

      mlir::Builder builder(ctx);
    
      // Collect devices with attached metadata.
      llvm::SmallVector<mlir::NamedAttribute, 8> devices;
      devices.reserve(device_set->devices().size());
    
      // For device that do not have any metadata, or if we failed to parse metadata
      // from the DeviceSet, we add a unit attribute to the `tf.devices` attribute.
      for (Device* device : device_set->devices()) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  4. pkg/kubelet/cm/devicemanager/manager.go

    	needed := required
    	// Gets list of devices that have already been allocated.
    	// This can happen if a container restarts for example.
    	devices := m.podDevices.containerDevices(podUID, contName, resource)
    	if devices != nil {
    		klog.V(3).InfoS("Found pre-allocated devices for resource on pod", "resourceName", resource, "containerName", contName, "podUID", podUID, "devices", sets.List(devices))
    		needed = needed - devices.Len()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 15 12:01:56 UTC 2024
    - 43K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/utils/device_util_test.cc

      llvm::SmallVector<std::unique_ptr<Device>, 2> devices;
      devices.push_back(FakeDevice::Make(cpu0));
      devices.push_back(FakeDevice::Make(gpu0, "compute capability: 7.0"));
      devices.push_back(FakeDevice::Make(gpu1));
    
      DeviceSet device_set;
      for (auto& device : devices) device_set.AddDevice(device.get());
      AddDevicesToOp(*module_ref, &device_set);
    
      auto devices_attr =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  6. pkg/kubelet/cm/devicemanager/manager_test.go

    type wrappedManagerImpl struct {
    	*ManagerImpl
    	socketdir string
    	callback  func(string, []pluginapi.Device)
    }
    
    func (m *wrappedManagerImpl) PluginListAndWatchReceiver(r string, resp *pluginapi.ListAndWatchResponse) {
    	var devices []pluginapi.Device
    	for _, d := range resp.Devices {
    		devices = append(devices, *d)
    	}
    	m.callback(r, devices)
    }
    
    func tmpSocketDir() (socketDir, socketName, pluginSocketName string, err error) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 65K bytes
    - Viewed (0)
  7. tensorflow/compiler/jit/device_util.cc

            "Multiple CPU devices ", device_info_cache.DebugString(devices)));
      }
    
      if (multiple_gpu_devices) {
        FAILED_TO_PICK_DEVICE(errors::Internal(
            "Multiple GPU devices ", device_info_cache.DebugString(devices)));
      }
    
      if (multiple_unknown_devices) {
        FAILED_TO_PICK_DEVICE(errors::Internal(
            "Multiple unknown devices ", device_info_cache.DebugString(devices)));
      }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 12 06:33:33 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  8. 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)
  9. pkg/kubelet/apis/podresources/server_v1alpha1_test.go

    		pods             []*v1.Pod
    		devices          []*podresourcesv1.ContainerDevices
    		expectedResponse *v1alpha1.ListPodResourcesResponse
    	}{
    		{
    			desc:             "no pods",
    			pods:             []*v1.Pod{},
    			devices:          []*podresourcesv1.ContainerDevices{},
    			expectedResponse: &v1alpha1.ListPodResourcesResponse{},
    		},
    		{
    			desc: "pod without devices",
    			pods: []*v1.Pod{
    				{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 08:12:16 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  10. 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)
Back to top