Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 704 for Deallocate (0.12 sec)

  1. subprojects/core/src/test/groovy/org/gradle/util/ports/ReservedPortRangeTest.groovy

            10.times {
                range.allocate()
            }
    
            then:
            range.allocate() == -1
    
            when:
            range.deallocate(103)
            range.deallocate(109)
            range.deallocate(102)
    
            then:
            (0..2).collect { range.allocate() }.sort() == [102, 103, 109]
        }
    
        int next(int port) {
            return port == LAST_PORT ? FIRST_PORT : port+1
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Aug 06 13:37:30 UTC 2015
    - 3.1K bytes
    - Viewed (0)
  2. subprojects/core/src/testFixtures/groovy/org/gradle/util/ports/ReservedPortRange.groovy

        }
    
        /**
         * Allocate an available port
         *
         * @return the port that was allocated
         */
        public int allocate() {
            try {
                lock.lock()
                return getAvailablePort()
            } finally {
                lock.unlock()
            }
        }
    
        /**
         * Deallocate the given port
         *
         * @param port
         */
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Aug 10 14:46:58 UTC 2017
    - 2.8K bytes
    - Viewed (0)
  3. tensorflow/c/experimental/stream_executor/stream_executor_test_util.cc

                  TF_Status* status) {}
    
    void PopulateDefaultStreamExecutor(SP_StreamExecutor* se) {
      *se = {SP_STREAMEXECUTOR_STRUCT_SIZE};
      se->allocate = Allocate;
      se->deallocate = Deallocate;
      se->host_memory_allocate = HostMemoryAllocate;
      se->host_memory_deallocate = HostMemoryDeallocate;
      se->get_allocator_stats = GetAllocatorStats;
      se->device_memory_usage = DeviceMemoryUsage;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 21 20:09:00 UTC 2023
    - 8.7K bytes
    - Viewed (0)
  4. subprojects/core/src/testFixtures/groovy/org/gradle/util/ports/AbstractAvailablePortAllocator.groovy

                for (int i = 0; i < reservations.size(); i++) {
                    ReservedPortRange range = reservations.get(i)
                    int port = range.allocate()
                    if (port > 0) {
                        return port
                    }
                }
                // if we couldn't allocate a port from the existing reserved port ranges, get another range
                reservePortRange()
            }
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 05 16:58:31 UTC 2022
    - 3.1K bytes
    - Viewed (0)
  5. tensorflow/c/tf_shape.h

    // we may expose the ABI of TF_Shape for performance reasons.
    typedef struct TF_Shape TF_Shape;
    
    // Return a new, unknown rank shape object. The caller is responsible for
    // calling TF_DeleteShape to deallocate and destroy the returned shape.
    TF_CAPI_EXPORT extern TF_Shape* TF_NewShape();
    
    // Returns the rank of `shape`. If `shape` has unknown rank, returns -1.
    TF_CAPI_EXPORT extern int TF_ShapeDims(const TF_Shape* shape);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 30 00:25:41 UTC 2020
    - 1.7K bytes
    - Viewed (0)
  6. tensorflow/c/tf_buffer.h

    // may also be held in a buffer.
    //
    // By default, TF_Buffer itself does not do any memory management of the
    // pointed-to block.  If need be, users of this struct should specify how to
    // deallocate the block by setting the `data_deallocator` function pointer.
    typedef struct TF_Buffer {
      const void* data;
      size_t length;
      void (*data_deallocator)(void* data, size_t length);
    } TF_Buffer;
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 27 21:07:00 UTC 2023
    - 2K bytes
    - Viewed (0)
  7. pkg/scheduler/framework/plugins/dynamicresources/dynamicresources_test.go

    			want: want{
    				prefilter: result{
    					status: framework.NewStatus(framework.UnschedulableAndUnresolvable, `resourceclaim must be reallocated`),
    				},
    				postfilter: result{
    					status: framework.NewStatus(framework.Unschedulable, `no new claims to deallocate`),
    				},
    			},
    		},
    		"delayed-allocation-missing-class": {
    			pod:    podWithClaimName,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 27 07:57:10 UTC 2024
    - 61.9K bytes
    - Viewed (0)
  8. tensorflow/c/experimental/stream_executor/stream_executor.cc

        }
        return DeviceMemoryBaseFromC(mem);
      }
      DeviceMemoryBase Allocate(uint64 size) {
        return Allocate(size, /*memory_space=*/0);
      }
    
      void Deallocate(DeviceMemoryBase* mem) override {
        SP_DeviceMemoryBase device_memory_base = DeviceMemoryBaseToC(mem);
        stream_executor_->deallocate(&device_, &device_memory_base);
      }
    
      absl::StatusOr<std::unique_ptr<MemoryAllocation>> HostMemoryAllocate(
    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. pkg/scheduler/apis/config/v1/default_plugins.go

    		// This plugin should come before DefaultPreemption because if
    		// there is a problem with a Pod and PostFilter gets called to
    		// resolve the problem, it is better to first deallocate an
    		// idle ResourceClaim than it is to evict some Pod that might
    		// be doing useful work.
    		for i := range config.MultiPoint.Enabled {
    			if config.MultiPoint.Enabled[i].Name == names.DefaultPreemption {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 25 06:27:01 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  10. tensorflow/c/experimental/stream_executor/stream_executor.h

      // to 0.
      void (*allocate)(const SP_Device* device, uint64_t size, int64_t memory_space,
                       SP_DeviceMemoryBase* mem);
    
      // Deallocate the device memory previously allocated via this interface.
      // Deallocation of a nullptr-representative value is permitted.
      void (*deallocate)(const SP_Device* device, SP_DeviceMemoryBase* memory);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Aug 24 08:40:35 UTC 2022
    - 21.6K bytes
    - Viewed (0)
Back to top