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

Use lld on clang-aarch64-full-2stage #281

Closed
wants to merge 1 commit into from

Conversation

DavidSpickett
Copy link
Contributor

We have another bot that uses lld, linaro-clang-aarch64-lld-2stage. However it does not build flang or mlir.

I don't think we really need both, so I've added the lld settings to clang-aarch64-full-2stage as well.

If this is stable then we can remove linaro-clang-aarch64-lld-2stage.

We have another bot that uses lld, linaro-clang-aarch64-lld-2stage.
However it does not build flang or mlir.

I don't think we really need both, so I've added the
lld settings to clang-aarch64-full-2stage as well.

If this is stable then we can remove linaro-clang-aarch64-lld-2stage.
'--threads=32', '--build-threads=32'],
extra_cmake_args=[
"-DCMAKE_C_FLAGS='-mcpu=cortex-a57'",
"-DCMAKE_CXX_FLAGS='-mcpu=cortex-a57'",
"-DLLVM_ENABLE_LLD=True",
"-DLLVM_LIT_ARGS='-v'",
Copy link
Contributor

Choose a reason for hiding this comment

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

I guess we should use -DCLANG_DEFAULT_LINKER=lld but I am little unsure about what -DLLVM_ENABLE_LLD=True does.
Also now that we are making changes to this builder, let change the cpu setting as well. I guess this will run on AWS which may use -mcpu=neoverse-v1 or something similar?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ampere Mountain Jade something but yes we should do that anyway I'll do that in a new PR.

Copy link
Contributor

@luporl luporl left a comment

Choose a reason for hiding this comment

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

This seems a good idea, but this means we won't test ld on 2-stage AArch64 builds anymore, right?
It looks like it will be tested only by clang-aarch64-quick and clang-aarch64-global-isel builders.

@DavidSpickett
Copy link
Contributor Author

True. Let me check what the SVE bots do right now. If those are all lld or close to it, maybe we keep this one using ld and remove the lld specific one later.

@DavidSpickett DavidSpickett marked this pull request as draft November 19, 2024 14:02
@DavidSpickett
Copy link
Contributor Author

On second thought, I don't have the enthusiasm to figure out the risk of losing ld coverage. So I will abandon this change.

I did consider adding the MLIR testing to this builder also, so that it would be the same as the lld if we wanted to merge them in future. However, the lld bot also includes Flang, and adding that will probably break some memory limits, so I decided against doing that.

In the future when SVE is standard, we can merge a lot of our non-AWS and AWS based builders, and this will be a much bigger saving.

@DavidSpickett DavidSpickett deleted the use-lld branch January 9, 2025 15:03
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

Successfully merging this pull request may close these issues.

3 participants