Skip to content

Commit 4d6ea06

Browse files
committed
build(llama.cu): 兼容天数
Signed-off-by: YdrMaster <ydrml@hotmail.com>
1 parent 65a8a88 commit 4d6ea06

File tree

3 files changed

+45
-43
lines changed

3 files changed

+45
-43
lines changed

Cargo.lock

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

66
[dependencies]
7-
operators = { git = "https://github.com/YdrMaster/operators-rs", rev = "ed28f2d", default-features = false, features = [
7+
operators = { git = "https://github.com/YdrMaster/operators-rs", rev = "01b39e8", default-features = false, features = [
88
"nvidia-gpu",
99
] }
1010
nn = { git = "https://github.com/YdrMaster/InfiniNN", rev = "1fff7ec" }
@@ -27,5 +27,6 @@ minijinja = { version = "2.10", default-features = false, features = [
2727
[build-dependencies]
2828
bindgen = { version = "0.71" }
2929
build-script-cfg = "0.1"
30-
search-cuda-tools = { git = "https://github.com/YdrMaster/cuda-driver", rev = "106f0b6" }
31-
search-maca-tools = { git = "https://github.com/YdrMaster/cuda-driver", rev = "106f0b6" }
30+
search-cuda-tools = { git = "https://github.com/YdrMaster/cuda-driver", rev = "b0148c0" }
31+
search-maca-tools = { git = "https://github.com/YdrMaster/cuda-driver", rev = "b0148c0" }
32+
search-corex-tools = { git = "https://github.com/YdrMaster/cuda-driver", rev = "b0148c0" }

llama.cu/build.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
use build_script_cfg::Cfg;
2+
use search_corex_tools::find_corex;
23
use search_cuda_tools::{find_cuda_root, find_nccl_root};
34
use search_maca_tools::find_maca_root;
45
use std::{
@@ -18,6 +19,14 @@ fn main() {
1819
["-x", "hpcc", "-fPIC"],
1920
Some("__MACA_ARCH__"),
2021
)
22+
} else if let Some(corex_root) = find_corex() {
23+
compile_bind(
24+
corex_root,
25+
"sample.cu",
26+
"bin/clang++",
27+
["-x", "ivcore", "-fPIC"],
28+
None,
29+
)
2130
} else if let Some(cuda_root) = find_cuda_root() {
2231
if find_nccl_root().is_some() {
2332
nccl.define()

0 commit comments

Comments
 (0)