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

[Dev] Enhance Operator Cache to support multi-thread environments #205

Merged
merged 14 commits into from
Oct 1, 2024

Conversation

LeiWang1999
Copy link
Contributor

Fix ref to #204 #186

This pull request introduces several changes to improve thread safety, enhance scheduler functionality, and refactor code for better readability and maintainability. The most important changes include adding a lock to the OperatorCache class, modifying the ThreadPoolExecutor to use a variable number of workers, and introducing a new fine-grained matrix multiplication scheduler.

Thread Safety Enhancements:

  • bitblas/cache/operator.py: Added a cache_locker using threading.RLock to synchronize access to the cache in methods like add, get, clear, and save_into_database. [1] [2]

Scheduler Improvements:

Code Refactoring:

Additional Changes:

@LeiWang1999 LeiWang1999 merged commit 22e25c9 into microsoft:main Oct 1, 2024
5 of 6 checks passed
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

Successfully merging this pull request may close these issues.

1 participant