Skip to content

Commit 67d9dcd

Browse files
build: 适配沐曦
Signed-off-by: PanZezhong <[email protected]>
1 parent 5104551 commit 67d9dcd

File tree

4 files changed

+39
-21
lines changed

4 files changed

+39
-21
lines changed

Cargo.lock

Lines changed: 33 additions & 15 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: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ version = "0.0.0"
44
edition.workspace = true
55

66
[dependencies]
7-
cuda = { git = "https://github.com/YdrMaster/cuda-driver", rev = "803d64b" }
8-
cublas = { git = "https://github.com/YdrMaster/cuda-driver", rev = "803d64b" }
9-
nccl = { git = "https://github.com/YdrMaster/cuda-driver", rev = "803d64b" }
10-
flash-attn = { git = "https://github.com/YdrMaster/learn-flash-attn", rev = "6faa30f" }
7+
cuda = { git = "https://github.com/YdrMaster/cuda-driver", rev = "38f74ee" }
8+
cublas = { git = "https://github.com/YdrMaster/cuda-driver", rev = "38f74ee" }
9+
nccl = { git = "https://github.com/YdrMaster/cuda-driver", rev = "38f74ee" }
10+
flash-attn = { git = "https://github.com/YdrMaster/learn-flash-attn", rev = "7f96e6f" }
1111
nn = { git = "https://github.com/YdrMaster/InfiniNN", rev = "171c5b0" }
1212
ggus = { git = "https://github.com/InfiniTensor/gguf", rev = "23c362f" }
1313
tokeneer = { git = "https://github.com/InfiniTensor/tokeneer", rev = "c48f39f" }

llama.cu/src/op/all_reduce.rs

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

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)