Skip to content

Commit

Permalink
Remove deprecated constructor from cuda_async_memory_resource
Browse files Browse the repository at this point in the history
  • Loading branch information
harrism committed Apr 23, 2024
1 parent 9e657b4 commit d81f464
Showing 1 changed file with 0 additions and 34 deletions.
34 changes: 0 additions & 34 deletions include/rmm/mr/device/cuda_async_memory_resource.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,40 +68,6 @@ class cuda_async_memory_resource final : public device_memory_resource {
win32_kmt = 0x4 ///< Allows a Win32 KMT handle to be used for exporting. (D3DKMT_HANDLE)
};

/**
* @brief Constructs a cuda_async_memory_resource with the optionally specified initial pool size
* and release threshold.
*
* If the pool size grows beyond the release threshold, unused memory held by the pool will be
* released at the next synchronization event.
*
* @throws rmm::logic_error if the CUDA version does not support `cudaMallocAsync`
*
* @param initial_pool_size Optional initial size in bytes of the pool. If no value is provided,
* initial pool size is half of the available GPU memory.
* @param release_threshold Optional release threshold size in bytes of the pool. If no value is
* provided, the release threshold is set to the total amount of memory on the current device.
* @param export_handle_type Optional `cudaMemAllocationHandleType` that allocations from this
* resource should support interprocess communication (IPC). Default is
* `cudaMemHandleTypeNone` for no IPC support.
*/
// NOLINTNEXTLINE(bugprone-easily-swappable-parameters)
template <class Optional,
cuda::std::enable_if_t<cuda::std::is_same_v<cuda::std::remove_cvref_t<Optional>,
thrust::optional<std::size_t>>,
int> = 0>
[[deprecated("Use std::optional instead of thrust::optional.")]] //
explicit cuda_async_memory_resource(
Optional initial_pool_size,
Optional release_threshold = {},
thrust::optional<allocation_handle_type> export_handle_type = {})
: cuda_async_memory_resource(initial_pool_size.value_or(std::nullopt),
release_threshold.value_or(std::nullopt),
export_handle_type.value_or(std::nullopt))

{
}

/**
* @brief Constructs a cuda_async_memory_resource with the optionally specified initial pool size
* and release threshold.
Expand Down

0 comments on commit d81f464

Please sign in to comment.