mirror of
https://github.com/huggingface/candle.git
synced 2025-06-17 11:08:52 +00:00
Fixing kernel cache (a bit brutal for now, but if build triggers,
rebuild ALL kernels).
This commit is contained in:
@ -83,6 +83,14 @@ mod cuda {
|
|||||||
.map(|p| p.unwrap())
|
.map(|p| p.unwrap())
|
||||||
.collect();
|
.collect();
|
||||||
|
|
||||||
|
for out_path in glob::glob(&format!("{out_dir}/**/*.ptx")).unwrap() {
|
||||||
|
std::fs::remove_file(out_path.unwrap()).unwrap();
|
||||||
|
}
|
||||||
|
|
||||||
|
for path in &kernel_paths {
|
||||||
|
println!("cargo:rerun-if-changed={}", path.display());
|
||||||
|
}
|
||||||
|
|
||||||
for path in &mut include_directories {
|
for path in &mut include_directories {
|
||||||
println!("cargo:rerun-if-changed={}", path.display());
|
println!("cargo:rerun-if-changed={}", path.display());
|
||||||
let destination =
|
let destination =
|
||||||
|
Reference in New Issue
Block a user