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

aicirt native Windows support #42

Open
2 tasks
mmoskal opened this issue Jan 30, 2024 · 1 comment
Open
2 tasks

aicirt native Windows support #42

mmoskal opened this issue Jan 30, 2024 · 1 comment

Comments

@mmoskal
Copy link
Member

mmoskal commented Jan 30, 2024

  • shared memory/futex implementation
  • figure out what to do with fork() in aicirt

Docs:

WIP for shm only: win.patch

@mmoskal
Copy link
Member Author

mmoskal commented Feb 8, 2024

It looks like fork() on Windows is going to be a major problem https://stackoverflow.com/questions/985281/what-is-the-closest-thing-windows-has-to-fork

A solution to that would be to create a separate process per request/sequence group and have threads inside of it for each sequence. When an AICI fork is required, we would create a new thread and memcpy() the Wasm module memory (I had this working once). It's quite non-trivial to implement though.

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