Skip to content

Commit

Permalink
chore: update rust toolchain
Browse files Browse the repository at this point in the history
Signed-off-by: usamoi <[email protected]>
  • Loading branch information
usamoi committed Mar 27, 2024
1 parent 1fc097e commit 9cbd82b
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 21 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/style.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Style check
name: Style

on:
push:
Expand Down
10 changes: 0 additions & 10 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 0 additions & 6 deletions crates/base/src/vector/vecf16.rs
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,6 @@ fn dot_v4_avx512fp16_test() {
println!("test {} ... skipped (v4_avx512fp16)", module_path!());
return;
}
let mut m = F32(0.0);
for _ in 0..300 {
let n = 4000;
let lhs = (0..n).map(|_| F16(rand::random::<_>())).collect::<Vec<_>>();
Expand All @@ -238,9 +237,7 @@ fn dot_v4_avx512fp16_test() {
(specialized - fallback).abs() < EPSILON,
"specialized = {specialized}, fallback = {fallback}."
);
m = std::cmp::max(m, (specialized - fallback).abs());
}
dbg!(m);
}

#[inline]
Expand Down Expand Up @@ -334,7 +331,6 @@ fn sl2_v4_avx512fp16_test() {
println!("test {} ... skipped (v4_avx512fp16)", module_path!());
return;
}
let mut m = F32(0.0);
for _ in 0..300 {
let n = 4000;
let lhs = (0..n).map(|_| F16(rand::random::<_>())).collect::<Vec<_>>();
Expand All @@ -345,9 +341,7 @@ fn sl2_v4_avx512fp16_test() {
(specialized - fallback).abs() < EPSILON,
"specialized = {specialized}, fallback = {fallback}."
);
m = std::cmp::max(m, (specialized - fallback).abs());
}
dbg!(m);
}

#[inline]
Expand Down
1 change: 0 additions & 1 deletion crates/detect/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ edition.workspace = true

[dependencies]
rustix.workspace = true
std_detect = { git = "https://github.com/tensorchord/stdarch", rev = "e50b2f6fa7f8a9a0081c88b1793d8560462d5848" }

detect_macros = { path = "../detect_macros" }

Expand Down
4 changes: 2 additions & 2 deletions crates/detect_macros/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -284,12 +284,12 @@ pub fn main(_: proc_macro::TokenStream) -> proc_macro::TokenStream {

#[cfg(target_arch = "x86_64")]
pub fn test() -> bool {
true #(&& std_detect::is_x86_feature_detected!(#target_features))*
true #(&& std::arch::is_x86_feature_detected!(#target_features))*
}

#[cfg(target_arch = "aarch64")]
pub fn test() -> bool {
true #(&& std_detect::is_aarch64_feature_detected!(#target_features))*
true #(&& std::arch::is_aarch64_feature_detected!(#target_features))*
}

pub(crate) fn init() {
Expand Down
2 changes: 1 addition & 1 deletion rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[toolchain]
channel = "nightly-2024-03-24"
channel = "nightly-2024-03-27"
profile = "default"
targets = [
"aarch64-apple-darwin",
Expand Down

0 comments on commit 9cbd82b

Please sign in to comment.