Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 1,371 for Allocate (0.15 sec)

  1. tensorflow/compiler/mlir/tfr/ir/tfr_types.h

      static TFRTypeStorage* construct(TypeStorageAllocator& allocator, KeyTy key) {
        // Allocate a new storage instance.
        auto byteSize = TFRTypeStorage::totalSizeToAlloc<StringAttr>(key.size());
        auto rawMem = allocator.allocate(byteSize, alignof(TFRTypeStorage));
        auto result = ::new (rawMem) TFRTypeStorage(key.size());
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Dec 05 07:17:01 UTC 2023
    - 4.1K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/types2/subst.go

    }
    
    func (subst *subster) varList(in []*Var) (out []*Var, copied bool) {
    	out = in
    	for i, v := range in {
    		if w := subst.var_(v); w != v {
    			if !copied {
    				// first variable that got substituted => allocate new out slice
    				// and copy all variables
    				new := make([]*Var, len(in))
    				copy(new, out)
    				out = new
    				copied = true
    			}
    			out[i] = w
    		}
    	}
    	return
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:04:07 UTC 2024
    - 11K bytes
    - Viewed (0)
  3. pkg/registry/core/service/portallocator/controller/repair.go

    			default:
    				nodePortRepairPortErrors.WithLabelValues("unknown").Inc()
    				c.recorder.Eventf(svc, nil, corev1.EventTypeWarning, "UnknownError", "PortAllocation", "Unable to allocate port %d due to an unknown error", port)
    				return fmt.Errorf("unable to allocate port %d for service %s/%s due to an unknown error, exiting: %v", port, svc.Name, svc.Namespace, err)
    			}
    		}
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Sep 30 15:46:06 UTC 2023
    - 10.4K bytes
    - Viewed (0)
  4. platforms/documentation/docs/src/snippets/native-binaries/cunit/groovy/libs/cunit/2.1-2/include/CUnit/MyMem.h

      void* CU_realloc(void *ptr, size_t size, unsigned int uiLine, const char* szFileName);
      CU_EXPORT void CU_dump_memory_usage(const char*);
    
      /** c-allocate with memory tracking. */
      #define CU_CALLOC(x, y)         CU_calloc((x), (y), __LINE__, __FILE__)
      /** m-allocate with memory tracking. */
      #define CU_MALLOC(x)            CU_malloc((x), __LINE__, __FILE__)
      /** Free with memory tracking. */
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 4K bytes
    - Viewed (0)
  5. src/runtime/testdata/testwintls/main.c

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    #include <windows.h>
    
    int main(int argc, char **argv) {
        if (argc < 3) {
            return 1;
        }
        // Allocate more than 64 TLS indices
        // so the Go runtime doesn't find
        // enough space in the TEB TLS slots.
        for (int i = 0; i < 65; i++) {
            TlsAlloc();
        }
        HMODULE hlib = LoadLibrary(argv[1]);
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 25 15:37:00 UTC 2023
    - 692 bytes
    - Viewed (0)
  6. src/cmd/cgo/internal/testerrors/testdata/malloc.go

    package main
    
    // #include <stdlib.h>
    import "C"
    
    import (
    	"fmt"
    	"runtime"
    )
    
    func main() {
    	var size C.size_t
    	size--
    
    	// The Dragonfly libc succeeds when asked to allocate
    	// 0xffffffffffffffff bytes, so pass a different value that
    	// causes it to fail.
    	if runtime.GOOS == "dragonfly" {
    		size = C.size_t(0x7fffffff << (32 * (^uintptr(0) >> 63)))
    	}
    
    	p := C.malloc(size)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 766 bytes
    - Viewed (0)
  7. pilot/pkg/xds/testdata/nds-se.yaml

      name: service-none-wildcard
      namespace: ns2
    spec:
      hosts:
        - "*.random-4.host.example"
      # expect no address to be auto allocated
      ports:
        - number: 80
          name: http
          protocol: HTTP
      resolution: NONE
    ---
    # this should not have any name table entry
    # as we dont auto allocate for none mode services
    apiVersion: networking.istio.io/v1alpha3
    kind: ServiceEntry
    metadata:
      name: service-none-no-wildcard
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jan 08 09:17:55 UTC 2021
    - 1.8K bytes
    - Viewed (0)
  8. tensorflow/c/experimental/stream_executor/stream_executor.cc

        platform_fns_->destroy_device(platform_, &device_);
      }
    
      absl::Status Init() override { return absl::OkStatus(); }
    
      DeviceMemoryBase Allocate(uint64 size, int64_t memory_space) override {
        SP_DeviceMemoryBase mem = {SP_DEVICE_MEMORY_BASE_STRUCT_SIZE};
        stream_executor_->allocate(&device_, size, memory_space, &mem);
        absl::Status status = ValidateSPDeviceMemoryBase(mem);
        if (!status.ok()) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Jun 14 07:39:19 UTC 2024
    - 27.1K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/pkg/util/flowcontrol/request/list_work_estimator.go

    	numStored, err := e.countGetterFn(key(requestInfo))
    	switch {
    	case err == ObjectCountStaleErr:
    		// object count going stale is indicative of degradation, so we should
    		// be conservative here and allocate maximum seats to this list request.
    		// NOTE: if a CRD is removed, its count will go stale first and then the
    		// pruner will eventually remove the CRD from the cache.
    		return WorkEstimate{InitialSeats: maxSeats}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 10 11:56:42 UTC 2024
    - 7K bytes
    - Viewed (0)
  10. src/runtime/mcentral.go

    		traceRelease(trace)
    	}
    
    	// If we sweep spanBudget spans without finding any free
    	// space, just allocate a fresh span. This limits the amount
    	// of time we can spend trying to find free space and
    	// amortizes the cost of small object sweeping over the
    	// benefit of having a full free span to allocate from. By
    	// setting this to 100, we limit the space overhead to 1%.
    	//
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 8.1K bytes
    - Viewed (0)
Back to top