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

[mono][aot] Add a 'compile-in-child' AOT argument #98866

Merged
merged 11 commits into from
Mar 5, 2024
Merged

Conversation

vargaz
Copy link
Contributor

@vargaz vargaz commented Feb 23, 2024

No description provided.

@vargaz
Copy link
Contributor Author

vargaz commented Feb 23, 2024

/azp run runtime-wasm,runtime-ioslike

Copy link

Azure Pipelines successfully started running 2 pipeline(s).

@vargaz
Copy link
Contributor Author

vargaz commented Feb 24, 2024

/azp run runtime-wasm,runtime-ioslike

Copy link

Azure Pipelines successfully started running 2 pipeline(s).

@vargaz vargaz changed the title [mono][aot] Add a 'driver' mode [mono][aot] Add a 'compile-in-child' AOT argument Feb 24, 2024
@vargaz
Copy link
Contributor Author

vargaz commented Feb 24, 2024

/azp run runtime-wasm,runtime-ioslike

Copy link

Azure Pipelines successfully started running 2 pipeline(s).

@vargaz
Copy link
Contributor Author

vargaz commented Feb 24, 2024

/azp run runtime-wasm,runtime-ioslike

Copy link

Azure Pipelines successfully started running 2 pipeline(s).

@vargaz vargaz force-pushed the aot-driver branch 2 times, most recently from 1b33ed8 to 997d955 Compare February 24, 2024 15:08
@vargaz
Copy link
Contributor Author

vargaz commented Feb 24, 2024

/azp run runtime-wasm,runtime-ioslike

Copy link

Azure Pipelines successfully started running 2 pipeline(s).

@vargaz
Copy link
Contributor Author

vargaz commented Feb 24, 2024

/azp run runtime-wasm,runtime-ioslike

Copy link

Azure Pipelines successfully started running 2 pipeline(s).

@vargaz
Copy link
Contributor Author

vargaz commented Feb 24, 2024

/azp run runtime-wasm,runtime-ioslike

Copy link

Azure Pipelines successfully started running 2 pipeline(s).

Copy link

Azure Pipelines successfully started running 2 pipeline(s).

src/mono/mono/mini/aot-compiler.c Show resolved Hide resolved
src/mono/mono/mini/aot-compiler.c Outdated Show resolved Hide resolved
@vargaz
Copy link
Contributor Author

vargaz commented Mar 1, 2024

/azp run runtime-wasm,runtime-ioslike

Copy link

Azure Pipelines successfully started running 2 pipeline(s).

@vargaz
Copy link
Contributor Author

vargaz commented Mar 1, 2024

/azp run runtime-wasm,runtime-ioslike

Copy link

Azure Pipelines successfully started running 2 pipeline(s).

@vargaz
Copy link
Contributor Author

vargaz commented Mar 2, 2024

/azp run runtime-wasm,runtime-ioslike

Copy link

Azure Pipelines successfully started running 2 pipeline(s).

@vargaz
Copy link
Contributor Author

vargaz commented Mar 2, 2024

Failures are unrelated.

@vargaz
Copy link
Contributor Author

vargaz commented Mar 2, 2024

Enabling this on wasm on windows causes test failures, but the linux version seems to work.

@vargaz vargaz merged commit 9b0055b into dotnet:main Mar 5, 2024
109 of 111 checks passed
@vargaz vargaz deleted the aot-driver branch March 5, 2024 22:14
radical pushed a commit to radical/runtime that referenced this pull request Mar 6, 2024
* [mono][aot] Collect command line arguments and pass them to the aot compiler.

* [mono][aot] Extract the code invoking external tools into separate functions.

* [mono][aot] Add a 'compile-in-child' aot argument.

When set, the JIT compilation is done in a child process. This helps to reduce overall memory
usage since memory used during JITting is no longer going to be reserved when
running external tools like opt/llc.

* Enable by default on wasm on unix.

* Handle spaces correctly.

* Disable on windows for now.

* Add dedup support.

* Add windows support.

* Enable on wasm on windows.

* Fix windows support.

* Disable on windows.
@github-actions github-actions bot locked and limited conversation to collaborators Apr 7, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants