Skip to content

Commit 7591b5a

Browse files
适配沐曦
Signed-off-by: PanZezhong <panzezhong@qiyuanlab.com>
1 parent 2c1d870 commit 7591b5a

File tree

4 files changed

+55
-45
lines changed

4 files changed

+55
-45
lines changed

Cargo.lock

Lines changed: 51 additions & 41 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

llama.cu/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ version = "0.0.0"
44
edition.workspace = true
55

66
[dependencies]
7-
operators = { git = "https://github.com/YdrMaster/operators-rs", rev = "88c58bd", default-features = false, features = [
8-
"nvidia-gpu",
7+
operators = { git = "https://github.com/YdrMaster/operators-rs", rev = "28c9dfd", default-features = false, features = [
8+
"metax-gpu",
99
] }
1010
nn = { git = "https://github.com/YdrMaster/InfiniNN", rev = "171c5b0" }
1111
ggus = { git = "https://github.com/InfiniTensor/gguf", rev = "23c362f" }

llama.cu/src/op/all_reduce.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,6 @@ impl Operator for AllReduce {
3737
.comm
3838
.as_ref()
3939
.unwrap()
40-
.all_reduce(dst, Some(src), dt, ReduceType::ncclSum, stream);
40+
.all_reduce(dst, Some(src), dt, ReduceType::hcclSum, stream);
4141
}
4242
}

llama.cu/src/op/random_sample/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ mod bindings {
1111
use $crate::op::random_sample::bindings::*;
1212
#[allow(unused_unsafe, clippy::macro_metavars_in_unsafe)]
1313
let err = unsafe { $f };
14-
assert_eq!(err, cudaError::cudaSuccess);
14+
assert_eq!(err, cudaError_t::hcSuccess);
1515
}};
1616
}
1717
}

0 commit comments

Comments
 (0)