mirror of
https://github.com/huggingface/candle.git
synced 2025-06-18 11:37:11 +00:00
Merge pull request #40 from LaurentMazare/fix_kernel_cache
Fixing kernel cache (a bit brutal for now, but if build triggers, rebuild ALL kernels).
This commit is contained in:
@ -83,6 +83,15 @@ 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();
|
||||||
|
}
|
||||||
|
|
||||||
|
println!("cargo:rerun-if-changed=src/");
|
||||||
|
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