-
Notifications
You must be signed in to change notification settings - Fork 281
chore: update target-cpus in published binaries to x86-64-v3 and neoverse-n1 #3368
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
base: main
Are you sure you want to change the base?
Changes from all commits
34f26f7
a66cedc
4c3ac2f
190f951
361e567
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -51,26 +51,26 @@ format: | |
|
|
||
| # build native libs for amd64 architecture Linux/MacOS on a Linux/amd64 machine/container | ||
| core-amd64-libs: | ||
| cd native && cargo build -j 2 --release $(FEATURES_ARG) | ||
| cd native && RUSTFLAGS="-Ctarget-cpu=x86-64-v3" cargo build -j 2 --release $(FEATURES_ARG) | ||
| ifdef HAS_OSXCROSS | ||
| rustup target add x86_64-apple-darwin | ||
| cd native && cargo build -j 2 --target x86_64-apple-darwin --release $(FEATURES_ARG) | ||
| endif | ||
|
|
||
| # build native libs for arm64 architecture Linux/MacOS on a Linux/arm64 machine/container | ||
| core-arm64-libs: | ||
| cd native && cargo build -j 2 --release $(FEATURES_ARG) | ||
| cd native && RUSTFLAGS="-Ctarget-cpu=neoverse-n1" cargo build -j 2 --release $(FEATURES_ARG) | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is also a target for released binaries (build-release-comet.sh). |
||
| ifdef HAS_OSXCROSS | ||
| rustup target add aarch64-apple-darwin | ||
| cd native && cargo build -j 2 --target aarch64-apple-darwin --release $(FEATURES_ARG) | ||
| endif | ||
|
|
||
| core-amd64: | ||
| rustup target add x86_64-apple-darwin | ||
| cd native && RUSTFLAGS="-Ctarget-cpu=skylake -Ctarget-feature=-prefer-256-bit" CC=o64-clang CXX=o64-clang++ cargo build --target x86_64-apple-darwin --release $(FEATURES_ARG) | ||
| cd native && RUSTFLAGS="-Ctarget-cpu=skylake" CC=o64-clang CXX=o64-clang++ cargo build --target x86_64-apple-darwin --release $(FEATURES_ARG) | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This flag doesn't make sense on this target (Skylake), so I suspect it's mistakenly copy-pasted from elsewhere. |
||
| mkdir -p common/target/classes/org/apache/comet/darwin/x86_64 | ||
| cp native/target/x86_64-apple-darwin/release/libcomet.dylib common/target/classes/org/apache/comet/darwin/x86_64 | ||
| cd native && RUSTFLAGS="-Ctarget-cpu=haswell -Ctarget-feature=-prefer-256-bit" cargo build --release $(FEATURES_ARG) | ||
| cd native && RUSTFLAGS="-Ctarget-cpu=x86-64-v3" cargo build --release $(FEATURES_ARG) | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is for local development I guess, but made consistent. Also this flag doesn't make sense on this target (Haswell), so I suspect it's mistakenly copy-pasted from elsewhere. |
||
| mkdir -p common/target/classes/org/apache/comet/linux/amd64 | ||
| cp native/target/release/libcomet.so common/target/classes/org/apache/comet/linux/amd64 | ||
| jar -cf common/target/comet-native-x86_64.jar \ | ||
|
|
@@ -83,7 +83,7 @@ core-arm64: | |
| cd native && RUSTFLAGS="-Ctarget-cpu=apple-m1" CC=arm64-apple-darwin21.4-clang CXX=arm64-apple-darwin21.4-clang++ CARGO_FEATURE_NEON=1 cargo build --target aarch64-apple-darwin --release $(FEATURES_ARG) | ||
| mkdir -p common/target/classes/org/apache/comet/darwin/aarch64 | ||
| cp native/target/aarch64-apple-darwin/release/libcomet.dylib common/target/classes/org/apache/comet/darwin/aarch64 | ||
| cd native && RUSTFLAGS="-Ctarget-cpu=native" cargo build --release $(FEATURES_ARG) | ||
| cd native && RUSTFLAGS="-Ctarget-cpu=neoverse-n1" cargo build --release $(FEATURES_ARG) | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is for local development I guess, but made consistent. |
||
| mkdir -p common/target/classes/org/apache/comet/linux/aarch64 | ||
| cp native/target/release/libcomet.so common/target/classes/org/apache/comet/linux/aarch64 | ||
| jar -cf common/target/comet-native-aarch64.jar \ | ||
|
|
@@ -94,8 +94,8 @@ core-arm64: | |
| release-linux: clean | ||
| rustup target add aarch64-apple-darwin x86_64-apple-darwin | ||
| cd native && RUSTFLAGS="-Ctarget-cpu=apple-m1" CC=arm64-apple-darwin21.4-clang CXX=arm64-apple-darwin21.4-clang++ CARGO_FEATURE_NEON=1 cargo build --target aarch64-apple-darwin --release $(FEATURES_ARG) | ||
| cd native && RUSTFLAGS="-Ctarget-cpu=skylake -Ctarget-feature=-prefer-256-bit" CC=o64-clang CXX=o64-clang++ cargo build --target x86_64-apple-darwin --release $(FEATURES_ARG) | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This flag doesn't make sense on this target (Skylake), so I suspect it's mistakenly copy-pasted from elsewhere. |
||
| cd native && RUSTFLAGS="-Ctarget-cpu=native -Ctarget-feature=-prefer-256-bit" cargo build --release $(FEATURES_ARG) | ||
| cd native && RUSTFLAGS="-Ctarget-cpu=skylake" CC=o64-clang CXX=o64-clang++ cargo build --target x86_64-apple-darwin --release $(FEATURES_ARG) | ||
| cd native && RUSTFLAGS="-Ctarget-cpu=native" cargo build --release $(FEATURES_ARG) | ||
| ./mvnw install -Prelease -DskipTests $(PROFILES) | ||
| release: | ||
| cd native && RUSTFLAGS="$(RUSTFLAGS) -Ctarget-cpu=native" cargo build --release $(FEATURES_ARG) | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a target for released binaries (build-release-comet.sh).