[Lang] Remove deprecated compile option ndarray_use_cached_allocator #7937
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Issue: #
Brief Summary
🤖 Generated by Copilot at b10a055
Removed the
use_cached
flag and related parameters from various classes and functions that handle memory allocation for different devices. This flag was unnecessary and redundant, as all devices now use a caching allocator by default. This simplifies the code and reduces the complexity of the memory management logic.Walkthrough
🤖 Generated by Copilot at b10a055
ndarray_use_cached_allocator
flag and simplify memory allocation logic for different devicesndarray_use_cached_allocator
field fromCompileConfig
struct and class (link, link, link)use_cached
parameter and field fromallocate_memory_runtime
function andDeviceAllocation
struct inCUDADevice
andAMDGPUDevice
classes (link, link, link, link)use_cached
parameter fromallocate_memory
function inLlvmRuntime
class andallocate_memory_runtime
function call inallocate_memory_ndarray
function (link, link)use_cached
field fromLlvmDevice
class (link)ndarray_use_cached_allocator
parameter fromtest
decorator intest_ndarray_caching_allocator
function intest_ndarray.py
(link)