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

Switch to Lparallel and use conditions to cancel threads #2

Open
Ambrevar opened this issue Apr 26, 2023 · 0 comments · May be fixed by #16 or #36
Open

Switch to Lparallel and use conditions to cancel threads #2

Ambrevar opened this issue Apr 26, 2023 · 0 comments · May be fixed by #16 or #36

Comments

@Ambrevar
Copy link
Member

The current architecture Calispel and with thread spwaning / destruction has some limits:

  • ECL (and maybe other implementations?) is not supported.
  • It may induce some race conditions (in particular with CCL), resulting in dangling threads.
  • It may be slow to spawn that many threads.
  • It results in a complicated API.

Suggestion: Switch to Lparallel with 1 kernel per prompt, and use conditions to interrupt.

  • Should fix ECL support.
  • Race condition surface dramatically reduced.
  • Should be faster since Lparallel managers its own workers, thus does not need to spawn a crazy number of threads.
  • Simpler API since the user does not need to know about the interruption channel and can use conditions instead.
@Ambrevar Ambrevar linked a pull request May 25, 2023 that will close this issue
6 tasks
@Ambrevar Ambrevar linked a pull request Dec 18, 2023 that will close this issue
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging a pull request may close this issue.

1 participant