Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

feat: add first draft of kernel builder tutorial#2971

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Draft
drbh wants to merge3 commits intomain
base:main
Choose a base branch
Loading
fromadd-kernel-builder-tutorial

Conversation

drbh
Copy link
Contributor

This PR is an early draft for an introduction to the kernel hub and a follow up on#2777

TODO

  • review post
  • revise
  • update Part 2 for production faq

@drbhdrbh marked this pull request as ready for reviewJuly 17, 2025 15:12
@drbhdrbh marked this pull request as draftJuly 17, 2025 15:13
Note that the `devShell` name above can be deciphered as:

```nix
nix develop .#devShells.torch27-cxx11-cu118-x86_64-linux
Copy link
Member

Choose a reason for hiding this comment

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

Small nit: 11.8 support is gone in Torch 2.8 (out next month), so it's probably better to use126 in the example, since it's an option for both 2.7 and 2.8.

drbh reacted with eyes emoji

```bash
mkdir -p build
cp -r --dereference ./result/* build
Copy link
Member

Choose a reason for hiding this comment

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

I recommend:

Suggested change
cp -r --dereference ./result/* build
rsync -av --deleteresult/ build/
chmod -R u+w build

--delete makes sure that old ops dylibs are removed. With a normalcp, a lot of different ops could accidentally linger around because they have unique suffixes, the new version doesn't overwrite the old. And the output is read-only because it comes from the Nix store, which can be annoying (there might also be an rsync flag to do it in one step).

git checkout -b main

# Update to use LFS for the binary files
echo "*.so filter=lfs diff=lfs merge=lfs -text" >> .gitattributes
Copy link
Member

Choose a reason for hiding this comment

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

I think the recommended way is:

Suggested change
echo "*.so filter=lfsdiff=lfs merge=lfs -text" >> .gitattributes
gitlfstrack "*.so"

echo "*.so filter=lfs diff=lfs merge=lfs -text" >> .gitattributes

# Add and commit your changes
git add .
Copy link
Member

Choose a reason for hiding this comment

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

After the previousnix develop andbuild2cmake, they may have a lot of cruft lingering around (pyproject.toml, etc.). I think we should be specific here.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@danieldkdanieldkdanieldk left review comments

At least 1 approving review is required to merge this pull request.

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@drbh@danieldk

[8]ページ先頭

©2009-2025 Movatter.jp