Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Turn back on llm gpu features #1740

Merged
merged 1 commit into from
Sep 6, 2023
Merged

Turn back on llm gpu features #1740

merged 1 commit into from
Sep 6, 2023

Conversation

rylev
Copy link
Collaborator

@rylev rylev commented Sep 6, 2023

Turns back on the off-by-default features for building llm GPU support (metal and cuda based).

This tweaks CI to not build with "--all-features" but instead an "--features all-tests". In the future, we might want to consolidate our test feature flags into one feature flag.

@rylev rylev requested a review from rajatjindal September 6, 2023 08:30
Signed-off-by: Ryan Levick <ryan.levick@fermyon.com>
@@ -115,7 +115,7 @@ jobs:

- name: build release
shell: bash
run: cargo build --all-features --release ${{ matrix.config.extraArgs }}
run: cargo build --release ${{ matrix.config.extraArgs }}
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Removed --all-features completely since I think we just want default features for release artifacts.

Comment on lines -100 to -101
outbound-pg-tests = []
outbound-mysql-tests = []
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

It looks like these were unused.

@@ -41,7 +41,7 @@ jobs:

- name: Cargo Clippy
run:
BUILD_SPIN_EXAMPLES=0 cargo clippy --workspace --all-targets --all-features -- -D warnings
BUILD_SPIN_EXAMPLES=0 cargo clippy --workspace --all-targets --features all-tests -- -D warnings
Copy link
Collaborator

Choose a reason for hiding this comment

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

does this mean we are going to run clippy only for test code?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

No - features are additive so this is "all default features plus the 'all-tests' features". With --features all-tests we run clippy against strictly more code code than without it.

@rylev rylev merged commit 317d784 into main Sep 6, 2023
@rylev rylev deleted the no-all-features branch September 6, 2023 09:38
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants