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

Fix CMakeList.txt to build as a sub-project #479

Merged
merged 2 commits into from
Oct 23, 2023

Conversation

niboshi
Copy link
Contributor

@niboshi niboshi commented Oct 17, 2023

I encountered some issues while trying to integrate TransformerEngine as a subproject. These are the fixes.

  • Replace CMAKE_SOURCE_DIR with CMAKE_CURRENT_SOURCE_DIR.
  • Use set( ) instead of list(APPEND ), as the latter resulted in command line like ...;-threads 4 in our build.

@timmoon10 timmoon10 self-requested a review October 17, 2023 20:53
@timmoon10 timmoon10 added the bug Something isn't working label Oct 17, 2023
Copy link
Collaborator

@timmoon10 timmoon10 left a comment

Choose a reason for hiding this comment

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

Looks good. Please sign your commit so it passes DCO and I'll run the CI.

@niboshi niboshi force-pushed the subproject-cmakelist branch 2 times, most recently from e56d548 to cd3ba3f Compare October 18, 2023 01:29
@niboshi
Copy link
Contributor Author

niboshi commented Oct 18, 2023

@timmoon10 Thanks. Signed my commit.

@niboshi niboshi force-pushed the subproject-cmakelist branch from cd3ba3f to 4be0ab1 Compare October 19, 2023 00:22
@niboshi
Copy link
Contributor Author

niboshi commented Oct 19, 2023

I'm sorry, "Signed-off-by: " was missing in the commit message. I fixed it.

@ptrendx
Copy link
Member

ptrendx commented Oct 20, 2023

/te-ci

@timmoon10 timmoon10 self-requested a review October 23, 2023 19:15
@timmoon10 timmoon10 merged commit 91b754e into NVIDIA:main Oct 23, 2023
9 checks passed
@niboshi niboshi deleted the subproject-cmakelist branch October 25, 2023 07:11
mingxu1067 pushed a commit to mingxu1067/TransformerEngine that referenced this pull request Nov 3, 2023
cyanguwa pushed a commit to cyanguwa/TransformerEngine that referenced this pull request Nov 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants