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

Metal building pipeline enhancement #14

Merged
merged 1 commit into from
Nov 30, 2024

Conversation

yaroslavyaroslav
Copy link
Collaborator

  1. Metal shaders for macOS compile with build.rs
  2. metallib stored within std out dir rather than in the git repo under hardcoded path.
  3. Prebuilt library and script deleted.
  4. build.rs handles conditional debug symbols injection into metal lib by setting [profile.release]\n debug = true in Cargo.toml

@yaroslavyaroslav yaroslavyaroslav marked this pull request as draft November 8, 2024 15:24
@yaroslavyaroslav
Copy link
Collaborator Author

PR is converted to draft due to iOS pipeline haven't been implemented yet.

@yaroslavyaroslav
Copy link
Collaborator Author

@moven0831 I haven't removed all.metal file yet, to avoid unnecessary conflicts with your pending PR #13 But it's the matter of changing a single function in the build current pipeline, so it won't take any long to do it afterwards.

PR is ready for review

1. Metal shaders for macOS compile with `build.rs`
2. `metallib` stored within std out dir rather than in the git repo under hardcoded path.
3. Prebuilt library and script deleted.
4. `build.rs` handles conditional debug symbols injection into metal lib by setting `[profile.release]\n debug = true` in `Cargo.toml`
Copy link
Collaborator

@moven0831 moven0831 left a comment

Choose a reason for hiding this comment

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

LGTM! and also this is compatible with PR #13 since the main purpose of it is to provide a new metal ec backend instead of the overall metal msm

Comment on lines +11 to +14
// List your Metal shaders here.
let shaders = vec!["all.metal"];

let shaders_to_check = vec!["all.metal", "msm.h.metal"];
Copy link
Collaborator

Choose a reason for hiding this comment

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

will replace the all.metal with refactored shaders to be compiled

@moven0831 moven0831 merged commit e0199d0 into zkmopro:main Nov 30, 2024
2 checks passed
@yaroslavyaroslav yaroslavyaroslav deleted the metal-build-pipeline branch November 30, 2024 10:01
@yaroslavyaroslav yaroslavyaroslav restored the metal-build-pipeline branch December 6, 2024 13:04
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