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

[HIPIFY][doc] Added -DLLVM_INCLUDE_TESTS=OFF to LLVM build command lines #1024

Merged
merged 1 commit into from
Sep 17, 2023

Conversation

emankov
Copy link
Collaborator

@emankov emankov commented Sep 17, 2023

[Reasons]

  • No need for any LLVM tests for hipify-clang building or testing
  • Reduce build time and avoid possible issues with tests

…lines

[Reasons]
+ No need for any LLVM tests for hipify-clang building or testing
+ Reduce build time and avoid possible issues with tests
@emankov emankov added documentation Improvements or additions to documentation enhancement Enhancement clang clang compiler related issue or change labels Sep 17, 2023
@emankov emankov self-assigned this Sep 17, 2023
@emankov emankov merged commit b56703d into ROCm:amd-staging Sep 17, 2023
1 check passed
emankov added a commit to emankov/HIPIFY that referenced this pull request Sep 19, 2023
…VM >= 10.0.0 anymore

[Reason]
+ With excluding tests from LLVM building (ROCm#1024), it turned out that building of any of the LLVM targets (`X86` or `NVPTX`) are not needed for hipify-clang as well:
  - Actually, there were some minor dependencies (probably erroneous) between some tests and targets in some LLVM versions, which were entirely gone with tests' exclusion
+ It was needed to check `-DLLVM_TARGETS_TO_BUILD=""`, because hipify-clang is also can be built under `HIPIFY_INCLUDE_IN_HIP_SDK` against ROCm's LLVM, which build is not targeting `NVPTX`
+ Reduction of LLVM compilation time up to two times

+ Building and testing of hipify-clang were checked against all LLVM versions >= 10.0.0 built with `-DLLVM_TARGETS_TO_BUILD=""`

[ToDo]
+ [Not IMP] Check `-DLLVM_TARGETS_TO_BUILD=""` for LLVM < 10.0.0
emankov added a commit that referenced this pull request Sep 20, 2023
[HIPIFY][#1024][doc] Do not need to build any LLVM targets for LLVM >= 10.0.0 anymore
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
clang clang compiler related issue or change documentation Improvements or additions to documentation enhancement Enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant