Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 110 of 397 for nalloc (0.11 sec)

  1. staging/src/k8s.io/apiserver/pkg/util/flowcontrol/conc_alloc.go

    // computeConcurrencyAllocation returns the unique `allocs []float64`, and
    // an associated `fairProp float64`, that jointly have
    // all of the following properties (to the degree that floating point calculations allow)
    // if possible otherwise returns an error saying why it is impossible.
    // `allocs` sums to `requiredSum`.
    // For each J in [0, len(classes)):
    //  1. `classes[J].lowerBound <= allocs[J] <= classes[J].upperBound` and
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Dec 18 04:27:38 UTC 2022
    - 9.5K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/experimental/tac/transforms/cost_model.h

                          const std::string& to_hardware_str,
                          func::CallOp from_graph, func::CallOp to_graph);
    
    // Get the cross quantization/dequantization boundary cost.
    float GetQuantDequantCost(InferenceType from_inference_type,
                              InferenceType to_inference_type,
                              func::CallOp from_graph, func::CallOp to_graph);
    
    }  // namespace tac
    }  // namespace TFL
    }  // namespace mlir
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 19 00:13:50 UTC 2022
    - 2.5K bytes
    - Viewed (0)
  3. src/sync/oncefunc_test.go

    	calls := 0
    	f := sync.OnceFunc(func() { calls++ })
    	allocs := testing.AllocsPerRun(10, f)
    	if calls != 1 {
    		t.Errorf("want calls==1, got %d", calls)
    	}
    	if allocs != 0 {
    		t.Errorf("want 0 allocations per call, got %v", allocs)
    	}
    }
    
    func TestOnceValue(t *testing.T) {
    	calls := 0
    	f := sync.OnceValue(func() int {
    		calls++
    		return calls
    	})
    	allocs := testing.AllocsPerRun(10, func() { f() })
    	value := f()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 21 17:31:33 UTC 2023
    - 6.9K bytes
    - Viewed (0)
  4. src/cmd/cgo/internal/testsanitizers/testdata/tsan15.go

    static void *sendthr(void *arg) {
    	pthread_t th = *(pthread_t*)arg;
    	while (1) {
    		int r = pthread_kill(th, SIGWINCH);
    		if (r < 0)
    			break;
    	}
    	return 0;
    }
    
    static void foo() {
    	pthread_t *th = malloc(sizeof(pthread_t));
    	pthread_t th2;
    	pthread_create(th, 0, thr, 0);
    	pthread_create(&th2, 0, sendthr, th);
    	pthread_join(*th, 0);
    }
    */
    import "C"
    
    import (
    	"time"
    )
    
    //export go_callback
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 06 21:14:49 UTC 2024
    - 968 bytes
    - Viewed (0)
  5. src/cmd/cgo/internal/testsanitizers/testdata/msan7.go

    typedef struct { char b; uintptr_t x, y; } T;
    
    extern void F(T);
    
    // Use weak as a hack to permit defining a function even though we use export.
    void CF(int x) __attribute__ ((weak));
    void CF(int x) {
    	T *t = malloc(sizeof(T));
    	t->b = (char)x;
    	t->x = x;
    	t->y = x;
    	F(*t);
    }
    */
    import "C"
    
    //export F
    func F(t C.T) { println(t.b, t.x, t.y) }
    
    func main() {
    	C.CF(C.int(0))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 834 bytes
    - Viewed (0)
  6. tensorflow/c/experimental/filesystem/plugins/windows/windows_filesystem.cc

    // Implementation of a filesystem for POSIX environments.
    // This filesystem will support `file://` and empty (local) URI schemes.
    
    static void* plugin_memory_allocate(size_t size) { return calloc(1, size); }
    static void plugin_memory_free(void* ptr) { free(ptr); }
    
    // SECTION 1. Implementation for `TF_RandomAccessFile`
    // ----------------------------------------------------------------------------
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Apr 20 06:38:26 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  7. test/fixedbugs/issue22781.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package main
    
    import "runtime/debug"
    
    type T struct {
    	// >= 16 bytes to avoid tiny alloc.
    	a, b int
    }
    
    func main() {
    	debug.SetGCPercent(1)
    	for i := 0; i < 100000; i++ {
    		m := make(map[*T]struct{}, 0)
    		for j := 0; j < 20; j++ {
    			// During the call to mapassign_fast64, the key argument
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 22 04:30:27 UTC 2017
    - 680 bytes
    - Viewed (0)
  8. src/runtime/os_aix.go

    }
    
    //go:nosplit
    func semacreate(mp *m) {
    	if mp.waitsema != 0 {
    		return
    	}
    
    	var sem *semt
    
    	// Call libc's malloc rather than malloc. This will
    	// allocate space on the C heap. We can't call mallocgc
    	// here because it could cause a deadlock.
    	sem = (*semt)(malloc(unsafe.Sizeof(*sem)))
    	if sem_init(sem, 0, 0) != 0 {
    		throw("sem_init")
    	}
    	mp.waitsema = uintptr(unsafe.Pointer(sem))
    }
    
    //go:nosplit
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  9. src/internal/trace/event/go122/event.go

    )
    
    // Experiments.
    const (
    	// AllocFree is the alloc-free events experiment.
    	AllocFree event.Experiment = 1 + iota
    )
    
    // Experimental events.
    const (
    	_ event.Type = 127 + iota
    
    	// Experimental events for AllocFree.
    
    	// Experimental heap span events. Added in Go 1.23.
    	EvSpan      // heap span exists [timestamp, id, npages, type/class]
    	EvSpanAlloc // heap span alloc [timestamp, id, npages, type/class]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 14.8K bytes
    - Viewed (0)
  10. src/runtime/runtime1.go

    	profstackdepth           int32
    
    	// debug.malloc is used as a combined debug check
    	// in the malloc function and should be set
    	// if any of the below debug options is != 0.
    	malloc    bool
    	inittrace int32
    	sbrk      int32
    	// traceallocfree controls whether execution traces contain
    	// detailed trace data about memory allocation. This value
    	// affects debug.malloc only if it is != 0 and the execution
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:52:17 UTC 2024
    - 19.3K bytes
    - Viewed (0)
Back to top