Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEA] Add cache manipulation routines #941

Open
cliffburdick opened this issue Apr 3, 2025 · 0 comments
Open

[FEA] Add cache manipulation routines #941

cliffburdick opened this issue Apr 3, 2025 · 0 comments

Comments

@cliffburdick
Copy link
Collaborator

Currently the cache in MatX is stored in a static variable that has no way for the user to control it. Items are added transparently to the cache as needed, and they are never removed until the application exits. This can cause problems for applications that grow and use the cache more than smaller applications. At a minimum the user should be able to delete the cache of a specific operation, a specific operator, or the entire cache.

Something like the following would be suitable, but the syntax is only for an example:

  1. delete_cache(a = matmul(e,f) * fft(b)) or delete_cache(fft(b))
  2. delete_cache(FFT1D_OP); // Deletes all 1D FFT cache
  3. delete_cache(); // delete entire cache

In the first example multiple caches may be deleted if multiple functions are embedded in a single operation, whereas the second part only disables the one FFT operation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant