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

[infra] Enable linux-x64 Mono fullAOT mini job on extra platforms #96332

Merged
merged 118 commits into from
Mar 28, 2024

Conversation

kotlarmilos
Copy link
Member

@kotlarmilos kotlarmilos commented Dec 27, 2023

Description

This PR enables the linux-x64 full AOT mini job on extra platforms, utilizing the CBL-Mariner docker image. The parameters as_name and as_options, along with ld_name and ld_options are added to allow parameterization of the toolchain configuration.

Subsequent PRs include linux-x64 fullAOT llvm job, and arm64 jobs.

Test job run: https://dev.azure.com/dnceng-public/cbb18261-c48f-4abb-8651-8cdcb5474649/_build/results?buildId=620710&view=logs&jobId=9c845561-93d9-5f12-0979-955ea2f35497

@vargaz
Copy link
Contributor

vargaz commented Mar 8, 2024

The runtime changes look ok to me.

Copy link
Member

@matouskozak matouskozak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good job!

/p:BuildMonoAotCrossCompiler=true
/p:BuildMonoAotCrossCompilerOnly=true
/p:MonoLibClang="/usr/local/lib/libclang.so.16"
/p:MonoAOTEnableLLVM=true
Copy link
Member

@matouskozak matouskozak Mar 8, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not relevant since this PR is addressing mini full AOT, but I'm not sure if we shouldn't also pass /p:MonoEnableLLVM=true. For Perf AOT-llvm runs we use /p:MonoAOTEnableLLVM=true /p:MonoEnableLLVM=true /p:BuildMonoAOTCrossCompiler=true ... for both x64 and arm64.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point. Based on the source code, the output directory should be different for the LLVM optimizer and the linker when MonoAOTEnableLLVM vs MonoEnableLLVM is used. I suggest to address it in the LLVM-related PR.

@kotlarmilos
Copy link
Member Author

/azp run runtime-extra-platforms

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@kotlarmilos
Copy link
Member Author

/azp run runtime-extra-platforms

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@kotlarmilos
Copy link
Member Author

/azp run runtime-extra-platforms

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Copy link
Member

@matouskozak matouskozak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The infra changes LGTM!

@kotlarmilos kotlarmilos merged commit 71177d9 into dotnet:main Mar 28, 2024
196 of 208 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Apr 28, 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.

4 participants