Skip to content

Commit 1773784

Browse files
committed
Minor tweaks to build.rs
1 parent 1b9bfa4 commit 1773784

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

crates/cubecl-hip-sys/build.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ fn get_rocm_feature_version() -> io::Result<(u8, u8, u32)> {
5858
for (key, value) in env::vars() {
5959
if key.starts_with(ROCM_FEATURE_PREFIX) && value == "1" {
6060
if let Some(version) = key.strip_prefix(ROCM_FEATURE_PREFIX) {
61-
// Parse the version using `_` as the delimiter
6261
let parts: Vec<&str> = version.split('_').collect();
6362
if parts.len() == 3 {
6463
if let (Ok(major), Ok(minor), Ok(patch)) = (
@@ -75,7 +74,7 @@ fn get_rocm_feature_version() -> io::Result<(u8, u8, u32)> {
7574

7675
Err(io::Error::new(
7776
io::ErrorKind::NotFound,
78-
"No valid ROCm feature version found. One 'rocm_<version>' feature must be set.",
77+
"No valid ROCm feature version found. One 'rocm__<version>' feature must be set. For insance for ROCm 6.2.2 the feature is rocm__6_2_2.",
7978
))
8079
}
8180

0 commit comments

Comments
 (0)