[Refactor] Implement thread-local storage for FrameStack in frame.py and kernel.py (#352)
* [Refactor] Implement thread-local storage for FrameStack in frame.py and kernel.py - Replaced global FrameStack instances with thread-local storage to prevent cross-thread interference. - Introduced `_get_let_stack` and `_get_current_stack` functions to manage thread-local FrameStack instances in LetFrame and KernelLaunchFrame classes. - Updated all relevant methods to utilize the new thread-local stacks, ensuring thread safety in frame management. * lint fix
Showing
Please register or sign in to comment