diff options
author | Andrzej Janik <[email protected]> | 2021-04-12 01:07:45 +0200 |
---|---|---|
committer | Andrzej Janik <[email protected]> | 2021-04-12 01:07:45 +0200 |
commit | a005c92c61fb0c711c13b44f86b19ca0dd3a77c3 (patch) | |
tree | c261a6565b45c57d4370b0638b9db15b5cfef50e | |
parent | fedf88180a5e8e2731e9bf016a39293f137d91fd (diff) | |
download | ZLUDA-a005c92c61fb0c711c13b44f86b19ca0dd3a77c3.tar.gz ZLUDA-a005c92c61fb0c711c13b44f86b19ca0dd3a77c3.zip |
Index from 0
-rw-r--r-- | zluda_dump/src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/zluda_dump/src/lib.rs b/zluda_dump/src/lib.rs index 768d6f1..4ea449c 100644 --- a/zluda_dump/src/lib.rs +++ b/zluda_dump/src/lib.rs @@ -191,7 +191,7 @@ unsafe fn record_module_image(module: CUmodule, image: &str) { unsafe fn try_dump_module_image(image: &str) -> Result<(), Box<dyn Error>> { let mut dump_path = get_dump_dir()?; - dump_path.push(format!("module_{:04}.ptx", MODULES.as_ref().unwrap().len())); + dump_path.push(format!("module_{:04}.ptx", MODULES.as_ref().unwrap().len() - 1)); let mut file = File::create(dump_path)?; file.write_all(image.as_bytes())?; Ok(()) |