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:
Nicolas Patry
2023-06-29 18:02:06 +02:00
committed by GitHub

View File

@ -83,6 +83,15 @@ 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();
}
println!("cargo:rerun-if-changed=src/");
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 =