Fixing kernel cache (a bit brutal for now, but if build triggers,

rebuild ALL kernels).
This commit is contained in:
Nicolas Patry
2023-06-29 15:51:08 +00:00
parent 889f7e0971
commit b5bdbef53a

View File

@ -83,6 +83,14 @@ mod cuda {
.map(|p| p.unwrap())
.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 {
println!("cargo:rerun-if-changed={}", path.display());
let destination =