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

lgc: cmake func for adding LLVM external projects #2600

Merged
merged 2 commits into from
Jul 27, 2023

Conversation

trenouf
Copy link
Member

@trenouf trenouf commented Jul 20, 2023

LGC is an LLVM external project, and thus cmake variables need to be set up to tell LLVM about it. Now that it is gaining dependencies that are themselves LLVM external projects (llvm-dialects, LgcCps), this gives a single place to update the cmake variable setting up.

This commit introduces:

  • cmake/lgc.cmake provides add_lgc_projects to add LGC and its dependencies.

@trenouf trenouf requested a review from a team as a code owner July 20, 2023 19:22
@amdvlk-admin
Copy link
Collaborator

Test summary for commit 73dbf4d

CTS tests (Failed: 0/211360)
  • Built with version 1.3.3.1
  • Rhel 9.0, Gfx10
    • Passed: 35147/70459 (49.9%)
    • Failed: 0/70459 (0.0%)
    • Not Supported: 35312/70459 (50.1%)
    • Warnings: 0/70459 (0.0%)
    Ubuntu 22.04, Navi3x
    • Passed: 39024/70457 (55.4%)
    • Failed: 0/70457 (0.0%)
    • Not Supported: 31433/70457 (44.6%)
    • Warnings: 0/70457 (0.0%)
    Ubuntu 20.04, Navi2x
    • Passed: 39058/70444 (55.4%)
    • Failed: 0/70444 (0.0%)
    • Not Supported: 31386/70444 (44.6%)
    • Warnings: 0/70444 (0.0%)

nhaehnle
nhaehnle previously approved these changes Jul 21, 2023
Copy link
Member

@nhaehnle nhaehnle left a comment

Choose a reason for hiding this comment

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

LGTM, just curious about something...

set(LLVM_EXTERNAL_LLVM_DIALECTS_SOURCE_DIR ${PROJECT_SOURCE_DIR}/../imported/llvm-dialects)
set(LLVM_EXTERNAL_LGC_SOURCE_DIR ${PROJECT_SOURCE_DIR}/../lgc)
# Add LGC and its dependencies as LLVM external projects.
include("${CMAKE_CURRENT_SOURCE_DIR}/../cmake/lgc.cmake")
Copy link
Member

Choose a reason for hiding this comment

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

Is the CMAKE_CURRENT_SOURCE_DIR really necessary?

Copy link
Member Author

Choose a reason for hiding this comment

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

No. :-)

LGC is an LLVM external project, and thus cmake variables need to be set
up to tell LLVM about it. Now that it is gaining dependencies that are
themselves LLVM external projects (llvm-dialects, LgcCps), this gives a
single place to update the cmake variable setting up.

This commit introduces:

* cmake/lgc.cmake provides add_lgc_projects to add LGC and its dependencies.
@trenouf trenouf force-pushed the pr2600-lgc-cmake-ext-projs branch from 9891167 to d72faaf Compare July 26, 2023 14:42
@trenouf
Copy link
Member Author

trenouf commented Jul 26, 2023

Rebased to resolve conflicts and removed unnecessary CMAKE_CURRENT_SOURCE_DIRs.

It should not be like that, but I will not try and fix that here.
@trenouf trenouf force-pushed the pr2600-lgc-cmake-ext-projs branch from 54b3776 to ed96341 Compare July 26, 2023 18:46
@amdvlk-admin
Copy link
Collaborator

Test summary for commit ed96341

CTS tests (Failed: 0/211876)
  • Built with version 1.3.3.1
  • Rhel 9.0, Gfx10
    • Passed: 35146/70631 (49.8%)
    • Failed: 0/70631 (0.0%)
    • Not Supported: 35485/70631 (50.2%)
    • Warnings: 0/70631 (0.0%)
    Ubuntu 22.04, Navi3x
    • Passed: 39023/70629 (55.3%)
    • Failed: 0/70629 (0.0%)
    • Not Supported: 31606/70629 (44.7%)
    • Warnings: 0/70629 (0.0%)
    Ubuntu 20.04, Navi2x
    • Passed: 39057/70616 (55.3%)
    • Failed: 0/70616 (0.0%)
    • Not Supported: 31559/70616 (44.7%)
    • Warnings: 0/70616 (0.0%)

@trenouf trenouf merged commit e9c8ebb into GPUOpen-Drivers:dev Jul 27, 2023
10 checks passed
@trenouf trenouf deleted the pr2600-lgc-cmake-ext-projs branch July 27, 2023 15:51
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.

None yet

3 participants