Skip to content

Commit f059cd9

Browse files
committed
build: 适配沐曦
Signed-off-by: YdrMaster <ydrml@hotmail.com>
1 parent d3b1dfe commit f059cd9

File tree

4 files changed

+39
-18
lines changed

4 files changed

+39
-18
lines changed

Cargo.lock

Lines changed: 35 additions & 14 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 = "01b39e8", default-features = false, features = [
8-
"nvidia-gpu",
7+
operators = { git = "https://github.com/YdrMaster/operators-rs", rev = "fecafdb", default-features = false, features = [
8+
"metax-gpu",
99
] }
1010
nn = { git = "https://github.com/YdrMaster/InfiniNN", rev = "837710f" }
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
@@ -9,7 +9,7 @@ mod bindings {
99
use $crate::op::random_sample::bindings::*;
1010
#[allow(unused_unsafe, clippy::macro_metavars_in_unsafe)]
1111
let err = unsafe { $f };
12-
assert_eq!(err, cudaError::cudaSuccess);
12+
assert_eq!(err, cudaError_t::hcSuccess);
1313
}};
1414
}
1515
}

0 commit comments

Comments
 (0)