Skip to content

Commit 7162418

Browse files
committed
New version 6.2.2001
rename feature rocm_622 to rocm__6_2_2
1 parent c63b693 commit 7162418

File tree

4 files changed

+14
-7
lines changed

4 files changed

+14
-7
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ members = [
1111

1212
[workspace.package]
1313
edition = "2021"
14-
version = "6.2.4000"
14+
version = "6.2.2001"
1515
license = "MIT OR Apache-2.0"
1616
readme = "README.md"
1717

crates/cubecl-hip-sys/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ version.workspace = true
1212
rust-version = "1.81"
1313

1414
[features]
15-
default = ["rocm__6_2_4"]
15+
default = ["rocm__6_2_2"]
1616
rocm__6_2_2 = []
1717
rocm__6_2_4 = []
1818

crates/cubecl-hip-sys/build.rs

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
use std::{env, io};
21
use std::path::Path;
2+
use std::{env, io};
33

44
const ROCM_FEATURE_PREFIX: &str = "CARGO_FEATURE_ROCM__";
55

@@ -32,7 +32,11 @@ fn get_system_hip_version(rocm_path: impl AsRef<Path>) -> std::io::Result<(u8, u
3232
println!("cargo::warning=Unknown release version for patch version {system_patch}. This patch does not correspond to an official release patch.");
3333
}
3434

35-
Ok((system_major, system_minor, release_patch.unwrap_or(system_patch)))
35+
Ok((
36+
system_major,
37+
system_minor,
38+
release_patch.unwrap_or(system_patch),
39+
))
3640
}
3741

3842
/// The official patch number of a ROCm release is not the same of the patch number
@@ -79,12 +83,15 @@ fn ensure_single_rocm_feature_set() {
7983

8084
for (key, value) in env::vars() {
8185
if key.starts_with(ROCM_FEATURE_PREFIX) && value == "1" {
82-
enabled_features.push(format!("rocm__{}", key.strip_prefix(ROCM_FEATURE_PREFIX).unwrap()));
86+
enabled_features.push(format!(
87+
"rocm__{}",
88+
key.strip_prefix(ROCM_FEATURE_PREFIX).unwrap()
89+
));
8390
}
8491
}
8592

8693
match enabled_features.len() {
87-
1 => {},
94+
1 => {}
8895
0 => panic!("No ROCm version features are enabled. One ROCm version feature must be set."),
8996
_ => panic!(
9097
"Multiple ROCm version features are enabled: {:?}. Only one can be set.",

0 commit comments

Comments
 (0)