Skip to content
This repository was archived by the owner on Apr 6, 2026. It is now read-only.

Update the build.toml format in preparation for Metal#144

Merged
danieldk merged 3 commits into
mainfrom
build-v2-take2
May 28, 2025
Merged

Update the build.toml format in preparation for Metal#144
danieldk merged 3 commits into
mainfrom
build-v2-take2

Conversation

@danieldk

Copy link
Copy Markdown
Member

Changes:

  • kernel.<name>.language is removed.
  • kernel.<name>.backend is added and is one of cuda or rocm.
  • torch.universal is renamed to general.universal.
  • .cu files in kernels with the rocm backend are hipified.

build2toml still parses the old format and adds a new update-build subcommand to upgrade a build.toml. The Nix tooling does not support the old format, but will suggest to run build2toml update-build.

Changes:

* `kernel.<name>.language` is removed.
* `kernel.<name>.backend` is added and is one of `cuda` or `rocm`.
* `torch.universal` is renamed to `general.universal`.
* `.cu` files in kernels with the `rocm` backend are hipified.

`build2toml` still parses the old format and adds a new `update-build`
subcommand to upgrade a `build.toml`. The Nix tooling does not support
the old format, but will suggest to run `build2toml update-build`.

@drbh drbh left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

looks good to me just added a syntax nit and a possible naming collision comment

Comment thread build2cmake/src/config/v2.rs Outdated
Comment thread build2cmake/src/config/v2.rs Outdated
@danieldk danieldk merged commit bb1edfe into main May 28, 2025
8 checks passed
@danieldk danieldk deleted the build-v2-take2 branch May 28, 2025 08:27
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants