Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 503 for allocators (1.22 sec)

  1. src/runtime/malloc_test.go

    	// and again to make sure we finish the sweep phase.
    	runtime.GC()
    	runtime.GC()
    
    	// Disable preemption so we stay on one P's tiny allocator and
    	// nothing else allocates from it.
    	runtime.Acquirem()
    
    	// Make 1-byte allocations until we get a fresh tiny slot.
    	aligned := false
    	for i := 0; i < 16; i++ {
    		x := runtime.Escape(new(byte))
    		if uintptr(unsafe.Pointer(x))&0xf == 0xf {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 05 23:35:29 UTC 2023
    - 10.6K bytes
    - Viewed (0)
  2. tensorflow/c/kernels_test.cc

        // Allocate scalar TF_Tensor
        TF_Status* s = TF_NewStatus();
        int64_t dim = 1;
        TF_AllocatorAttributes alloc_attrs;
        alloc_attrs.struct_size = TF_ALLOCATOR_ATTRIBUTES_STRUCT_SIZE;
    #if GOOGLE_CUDA || TENSORFLOW_USE_ROCM
        alloc_attrs.on_host = 0;
    #else
        alloc_attrs.on_host = 1;
    #endif
        TF_Tensor* output = TF_AllocateTemp(
            /*context=*/ctx, /*dtype=*/TF_FLOAT, /*dims=*/&dim,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 06 19:12:29 UTC 2023
    - 50.4K bytes
    - Viewed (0)
  3. src/runtime/mstats.go

    	// Allocator stats.
    	//
    	// These are all uint64 because they're cumulative, and could quickly wrap
    	// around otherwise.
    	tinyAllocCount  uint64                  // number of tiny allocations
    	largeAlloc      uint64                  // bytes allocated for large objects
    	largeAllocCount uint64                  // number of large object allocations
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 08 21:03:13 UTC 2024
    - 34.2K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/ir/tfl_op_enums.td

    }
    def TFL_LSTMKernelTypeAttr : EnumAttr<TFL_Dialect, TFL_LSTMKernelType,
        "lstm_kernel_type_attr">;
    
    def I32ArrayParameter :
        AttrOrTypeParameter<"::llvm::ArrayRef<int32_t>", ""> {
      let allocator = [{$_dst = $_allocator.copyInto($_self);}];
      let cppStorageType = "::llvm::SmallVector<int32_t>";
      let parser = "::mlir::TFL::parseI32Array($_parser)";
      let printer = "$_printer << '[' << $_self << ']'";
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Oct 20 00:05:24 UTC 2022
    - 6.4K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/tests/side-effect-analysis-test.mlir

    }
    
    // -----
    
    // Tests two side-effecting ops operating on resources that are allocated in the
    // same function. The expectation is that the ops are treated as independent
    // (as the involved resource allocators have the `UniqueResourceAllocation`
    // trait).
    func.func @side_effecting_ops_with_different_resources_and_allocations(
      // expected-remark@above {{ID: 9}}
      %arg0: tensor<i32>,
      %arg1: tensor<f32>) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Dec 20 04:39:18 UTC 2023
    - 129.7K bytes
    - Viewed (0)
  6. pkg/registry/core/service/ipallocator/bitmap_test.go

    }
    
    func TestClusterIPMetrics(t *testing.T) {
    	clearMetrics()
    	// create IPv4 allocator
    	cidrIPv4 := "10.0.0.0/24"
    	_, clusterCIDRv4, _ := netutils.ParseCIDRSloppy(cidrIPv4)
    	a, err := NewInMemory(clusterCIDRv4)
    	if err != nil {
    		t.Fatalf("unexpected error creating CidrSet: %v", err)
    	}
    	a.EnableMetrics()
    	// create IPv6 allocator
    	cidrIPv6 := "2001:db8::/112"
    	_, clusterCIDRv6, _ := netutils.ParseCIDRSloppy(cidrIPv6)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jan 25 20:32:40 UTC 2023
    - 21.1K bytes
    - Viewed (0)
  7. pkg/kubelet/cm/cpumanager/policy_static.go

    				CpusPerCore:   CPUsPerCore,
    			}
    		}
    
    		availablePhysicalCPUs := p.GetAvailablePhysicalCPUs(s).Size()
    
    		// It's legal to reserve CPUs which are not core siblings. In this case the CPU allocator can descend to single cores
    		// when picking CPUs. This will void the guarantee of FullPhysicalCPUsOnly. To prevent this, we need to additionally consider
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Oct 06 13:16:15 UTC 2023
    - 28.8K bytes
    - Viewed (0)
  8. pkg/registry/core/service/allocator/bitmap_test.go

    limitations under the License.
    */
    
    package allocator
    
    import (
    	"testing"
    
    	"k8s.io/apimachinery/pkg/util/sets"
    )
    
    func TestAllocate(t *testing.T) {
    	testCases := []struct {
    		name      string
    		allocator func(max int, rangeSpec string, reserved int) *AllocationBitmap
    		max       int
    		reserved  int
    	}{
    		{
    			name:      "NewAllocationMap",
    			allocator: NewAllocationMapWithOffset,
    			max:       32,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 10 08:56:31 UTC 2022
    - 13.3K bytes
    - Viewed (0)
  9. pkg/registry/core/service/ipallocator/controller/repairip.go

    	workers    = 5
    )
    
    // Repair is a controller loop that examines all service ClusterIP allocations and logs any errors,
    // and then creates the accurate list of IPAddresses objects with all allocated ClusterIPs.
    //
    // Handles:
    // * Duplicate ClusterIP assignments caused by operator action or undetected race conditions
    // * Allocations to services that were not actually created due to a crash or powerloss
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 24.7K bytes
    - Viewed (0)
  10. pkg/registry/core/service/ipallocator/cidrallocator_test.go

    		allocator, err := r.getAllocator(netutils.ParseIPSloppy("10.0.0.11"))
    		if err != nil {
    			return false, nil
    		}
    		allocator.ipAddressSynced = func() bool { return true }
    		return allocator.ready.Load(), nil
    	})
    	if err != nil {
    		t.Fatal(err)
    	}
    	// allocate one IP from the new allocator
    	err = r.Allocate(netutils.ParseIPSloppy("10.0.0.11"))
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 31 21:05:06 UTC 2023
    - 13.7K bytes
    - Viewed (0)
Back to top