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

Refreshes docs/development.md #3932

Draft
wants to merge 33 commits into
base: main
Choose a base branch
from

Conversation

bjacobgordon
Copy link

First PR, super stoked! 🥳

Context

As part of Turbine Camp, I was referred to this doc to build Torch-MLIR on my Linux VM. It has a lot of potential, and I decided it to nudge it in a productive direction a bunch of times as I actually used the doc.

Approach

I tried to make the commits here "atomic", i.e. each one is a singular unit of work such that the file "works better"/"makes more sense" post-commit than pre-commit.

The majority of the commits in this PR is the story of how I "refactored" the doc step by step to look the way it does. I wrote them with Future Us in mind, so please don't squash haha.

Ready when you are, @marbre!

bjacobgordon and others added 30 commits December 23, 2024 20:59
… by blank lines

- enforced by markdown linter
- splits CLI commands so copy button can be used individually
- nests details for step 3 accordingly
- was formatted as an afterthought, not clear that it was needed to proceed
- environment activation now has a header for hyperlinking deeper into the doc
- Before, they were easy to miss and required you to back track a bit
…ails

- Makes the "in-tree" and "out-of-tree" variants adjacent to each other
- emphasizes the common options between "in-tree extended", "in-of-tree base", and "out-of-tree"
- tweaks existing headers to communicate command construction rather than immediate execution
- adds new header to indicate when the command should actually be executed
- the use-case for this doc leans more toward "development" rather than "release"
- leverages numbering and indentation to reduce cognitive load
CMake issued a warning upon fresh build:
"""
Manually-specified variables were not used by the project:
   LIBTORCH_CACHE
   LIBTORCH_SRC_BUILD
   LIBTORCH_VARIANT
"""
…arate code blocks

- makes them individually copyable from GitHub
… Build"

- makes it so that the GitHub copy button only grabs the code snippet itself
- less repetitive
- emphasizes that the targets can be superimposed
@bjacobgordon bjacobgordon marked this pull request as draft December 23, 2024 23:16
@bjacobgordon
Copy link
Author

@marbre The only thing I'm unsure about is removing the libtorch flags

@stellaraccident
Copy link
Collaborator

Thanks! Marius/Jacob, please review and land as you see fit. I'll have a closer look when I'm back and can contribute any adjustments then.

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.

2 participants