You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Remove the default feature from cubecl-hip-sys Cargo.toml (#13)
* Remove the default feature from cubecl-hip-sys Cargo.toml
* Check for rocm__ conflicts as well
* Set a ROCm version in CI
* Set default features when possible in build.rs
* Fix cargo audit weird bug
* Fix format
* Checkout repo in CI
Copy file name to clipboardexpand all lines: README.md
+6-1
Original file line number
Diff line number
Diff line change
@@ -43,7 +43,12 @@ If a fix is required and the default ROCm version remains `6.2.4`, the `cubecl-h
43
43
44
44
Add the crate [cubecl-hip-sys][2] to the `Cargo.toml` of your project and enable the feature
45
45
corresponding to the version of ROCm you have installed.
46
-
If you no feature corresponds to your ROCm installation then read the next section to learn
46
+
47
+
```toml
48
+
cubecl-hip-sys = { version = "6.3.1000", features = ["rocm__6_3_1"] }
49
+
```
50
+
51
+
If no feature corresponds to your ROCm installation then read the next section to learn
47
52
how to generate and submit new bindings for your version.
48
53
49
54
Next you need to point out where you installed ROCm so that `rustc` can link to your ROCM libraries. To do so set the variable `ROCM_PATH`, or `HIP_PATH` or the more specific `CUBECL_ROCM_PATH` to its
// a feature has been prodived to set the ROCm version
101
+
returnOk(());
102
+
}
103
+
println!("cargo::warning=No `rocm__x_x_x` feature set. Using the version of a default installation of ROCm if found on the system. Consider setting a `rocm__x_x_x` feature in the Cargo.toml file of your crate.");
104
+
105
+
// Set default feature with the version found on the system
106
+
let rocm_system_version = get_rocm_system_version(&rocm_path)?;
107
+
let hip_system_patch = get_hip_system_version(&rocm_path)?;
108
+
println!("cargo::warning=Found default version of ROCm on system: {rocm_system_version}. Associated HIP patch version is: {}", hip_system_patch.patch);
109
+
let default_rocm_feature = format!("rocm__{}", rocm_system_version).replace(".","_");
110
+
let default_hip_feature = format!("hip_{}", hip_system_patch.patch);
0 commit comments