- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 376 for r2devices (0.44 sec)
-
pkg/kubelet/cm/devicemanager/topology_hints_test.go
request: 5, devices: func() []pluginapi.Device { devices := []pluginapi.Device{} for i := 0; i < 100; i++ { id := fmt.Sprintf("Dev%d", i) devices = append(devices, makeNUMADevice(id, 0)) } for i := 100; i < 200; i++ { id := fmt.Sprintf("Dev%d", i) devices = append(devices, makeNUMADevice(id, 1)) } return devices }(),
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Sep 27 13:02:15 UTC 2023 - 47.5K bytes - Viewed (0) -
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) -
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) -
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) -
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) -
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) -
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) -
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) -
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) -
pkg/volume/util/device_util_linux_test.go
mockDeviceUtil := NewDeviceHandler(&mockOsIOHandler{}) devices, err := mockDeviceUtil.FindDevicesForISCSILun("target1", 1) if err != nil { t.Fatalf("error getting devices for lun: %v", err) } if devices == nil { t.Fatal("no devices returned") } if len(devices) != 1 { t.Fatalf("wrong number of devices: %d", len(devices)) } if devices[0] != "sda" { t.Fatalf("incorrect device %v", devices) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Aug 24 19:47:49 UTC 2021 - 8K bytes - Viewed (0)